TCastleWindow
class represents a window suitable for Castle Game Engine rendering.
Most CGE applications use this class (although there is an alternative TCastleControl, but we advise TCastleWindow
for most cases).
The TCastleWindow
has a number of alternative backends, using different libraries underneath to manage the window and OpenGL(ES) context properties. By default, we use a backend that is considered "best" for the current operating system you’re compiling to, but you can override this choice by defining a symbol CASTLE_WINDOW_xxx
at the compilation time. You can define this symbol in various places, e.g. in CastleEngineManifest.xml file.
Right now, we always use exactly one "backend", which is determined at the compile-time when you compile your application. In the future, we want to rework the CastleWindow infrastructure to enable you to use multiple backends, each backend in a separate unit, and (optionally) allow you to select the best backend at runtime.