The Main Classes
These
are the main classes of the
VortexGE :
- _CVortexVideoEnv
- This class is the main class that handles video output and user
input.
- This class is currently implemented using X Window system
(Xlib) only. In the future, this class may be implemented also using
SVGAlib and frame buffer.
- With Xlib, multiple instance of this class can be created, but
not with other video systems.
- Each _CVortexVideoEnv can be associated with more than than one
_CVortex3DEnv class.
- _CVortex3DEnv
- This class is the main class for rendering.
- You can have multiple instance of this class. Each instance
must have exactly one _CVortexVideoEnv class associated with.
- Even multiple instances of _CVortex3DEnv class have been
created, only one of them can be activated at a time. It is means that
the current active environment will be used for rendering. Call
_CVortex3DEnv::SetAsTheActiveEnv() to activate an instance of this
class.
- _CVortexAudioEnv
- This class is the main class that handles audio output.
- This class is currently implemented using dummy (NULL) audio
system and direct access to /dev/dsp only. In the future, this class
may be reimplemented to support DMA.
- Only exactly one instance of this class can be initialized.
Notes on
rendering :
- VortexGE uses left-handled coordinate system.
- When using any of the rendering functions, make sure that the
correct instance has been activated.
- Panel's vertices must be arranged in clockwise formation in order
to display correctly.
- Having multiple instance of this class which do rendering at the
same time is not recommended, because it may degrade performance.
Main Index