VCF::OpenGLControl Class Reference
#include <OpenGLControl.h>
Inheritance diagram for VCF::OpenGLControl:

Public Member Functions | |
| OpenGLControl () | |
| virtual | ~OpenGLControl () |
| virtual void | paint (GraphicsContext *context) |
| Override this function to add you own custom GL graphics calls here. | |
| virtual void | swapBuffers () |
| virtual void | afterCreate (ComponentEvent *event) |
| Special initializations may then happen here. | |
Detailed Description
- This is a custom control that can be used for OpenGL drawing. It takes care of setting up an OpenGL context and you can customize the paint function to do you own OpenGL drawing there.
- All the low level setup code to associate a platform window with the OpenGL system is taken care of for you.
Constructor & Destructor Documentation
|
|
|
|
|
|
Member Function Documentation
|
|
Special initializations may then happen here.
Reimplemented from VCF::Control. |
|
|
Override this function to add you own custom GL graphics calls here. Make sure to call the super class though or things won't work correctly! void MyGLControl::paint(GraphicsContext * context) { OpenGLControl::paint( context ); //rest of your GL code swapBuffers();//need to call this when you're done }
Reimplemented from VCF::CustomControl. |
|
|
|
The documentation for this class was generated from the following file:
- vcf/OpenGLKit/OpenGLControl.h
