Fl_RSO_Window. FLTK/OpenGL window that displays RSO Assets.
More...
#include <Fl_RSO_Window.H>
Fl_RSO_Window. FLTK/OpenGL window that displays RSO Assets.
Constructor
- Parameters
-
W | Width for the new window |
H | Height for the new window |
l | Label for the new window |
Constructor
- Parameters
-
X | X position for the new window |
Y | Y position for the new window |
W | Width for the new window |
H | Height for the new window |
l | Label for the new window |
void AddComponent |
( |
disti::ComponentBase * |
component | ) |
|
Iserts a component pointer into to the top of _object to be drawn first
- Parameters
-
component | Pointer to the component that's being added |
Initializes all members to their default settings
void DrawObjects |
( |
bool |
previewMode | ) |
|
|
protected |
Draw the objects
- Parameters
-
previewMode | When true, all objects are drawn. When false only objects on the canvas are drawn. |
Draw performance statistics
virtual void InitializeCanvas |
( |
float |
width, |
|
|
float |
height |
|
) |
| |
|
virtual |
Recreates the canvas size based on the input width and height
- Parameters
-
width | Value for the canvas width |
height | Value for the canvas height |
void RestoreOpenGLState |
( |
bool |
saveVal | ) |
|
|
protected |
Setup the OpenGL Context for drawing
- Returns
- Returns true if states will need to be restored
bool SetupOpenGLState |
( |
| ) |
|
|
protected |
Setup the OpenGL Context for drawing
- Returns
- Returns true if states will need to be restored
disti::GLPolygon* _canvas |
|
protected |
Polygon that defines the canvas to be drawn.
The currently selected Asset
The currently selected RSO
disti::OpenGLMatrices _currentMatrices |
|
protected |
The current OpenGL Matrices
Measures Draw performance
frame interval in microseconds
Contains a list of components that will be used to draw with
disti::Vector _previousMouseEventLocation |
|
protected |
The last mouse event location
Flag indicating if the window should be redrawn
Measures render(draw+predraw) performance
float _smoothedFrameDelay |
|
protected |
Frame interval, smoothed based on actual draw performance
Sets the viewing scale for the window
disti::Vector _viewTranslation |
|
protected |
The current translation for the view
The documentation for this class was generated from the following file: