class MASKING_DLL_DECLSPEC GLViewport
A simple OpenGL viewport widget.
Inheritance:
Protected Methods
-
void MsgDraw()
- Draws the contents of the viewport.
Documentation
A simple OpenGL viewport widget.
This is intended for making small windows containing OpenGL accelerated
3D graphics. You should use this widget only with the GLDriverDRS screen
update driver as it won't work properly with any of the others.
void MsgDraw()
-
Draws the contents of the viewport.
This function does all the tedious work necessary to setup a
viewport and calls the Draw(Bitmap &canvas) function. To draw
into the viewport in a derived widget simply overload the Draw()
function and put your OpenGL drawing code in it (typically gl_begin(),
gl_end() and everything that goes in between). The Draw()
function is passed a Bitmap object but the viewport currently
doesn't support regular Allegro drawing so this object is
an invalid null bitmap and should be ignored!
- This class has no child classes.
- See Also:
- GLDialog
GLDriverDRS
Alphabetic index Hierarchy of classes
Back to front page
|
page generated with DOC++