#include <renderengine.h>
Public Member Functions | |
| RenderEngine (int argc, char *argv[]) | |
| ~RenderEngine () | |
| GtkWidget * | getDrawingArea () |
| void | render () |
| void | renderSelect () |
| void | increment () |
| void | incrementXAngle () |
| void | incrementCameraAngle () |
| void | decrementCameraAngle () |
| void | incrementXCenter () |
| void | decrementXCenter () |
| void | incrementYCenter () |
| void | decrementYCenter () |
| void | incrementZCenter () |
| void | decrementZCenter () |
| void | zoomCameraIn () |
| void | zoomCameraOut () |
| void | setupView () |
| void | setupGlobalMatrix () |
| void | setupModes () |
| void | setupSelectView (GLdouble x, GLdouble y, GLint theViewport[]) |
| this function sets up the view for a special render on a mouse click | |
| int * | processHits (GLint hits, GLuint buffer[]) |
| this function figures out whcih object was clicked on in the OGL view | |
Private Attributes | |
| GtkWidget * | drawingArea |
| the actual widget to which the drawning will be done on | |
| GdkGLConfig * | glconfig |
| a variable for gtk to get to some OGL info | |
| GLfloat | xSpeed |
| this is the angle at which the whole view is currently rotated | |
| GLfloat | xAngle |
| GLfloat | cameraAngle |
| this is the angle at which the camera is looking down onto the view | |
| GLfloat | cameraAngleSpeed |
| GLfloat | xCenter |
| This is the x coordinate od the center of the view. | |
| GLfloat | yCenter |
| this is the y coordinate of the center of the view | |
| GLfloat | zCenter |
| This si the z coordinate of the center of the view. | |
| GLfloat | cameraOffset |
| The initial camera offset from the center. | |
| Position * | rotationCenter |
| This position is the center around which the camer rotates. | |
| vector< DrawableObject * > * | normal |
| This vector contains all of the objects to be drawn normally. | |
| vector< DrawableObject * > * | selectionCubes |
| This is a vector containing all of the current selection cubes. | |
| vector< DrawableObject * > * | notDrawn |
| This is a vector of items that are not being drawn at the moment. | |
| vector< DrawableObject * > * | highlight |
| This si the vector of drawable items that are currently highlighted. | |
| FileSystem | theFs |
| this is the filesystem object that read the data in from the rood directory | |
Friends | |
| gboolean | button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer data) |
the render engine creates the gtk widget for drawing openGL stuff onto, it holds vectors of objects to be drawn and not drawn. It contains camera position, and animation information. All of the gtkglext stuff happens here
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
this function figures out whcih object was clicked on in the OGL view
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
this function sets up the view for a special render on a mouse click
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
this is the angle at which the camera is looking down onto the view
|
|
|
|
|
|
The initial camera offset from the center.
|
|
|
the actual widget to which the drawning will be done on
|
|
|
a variable for gtk to get to some OGL info
|
|
|
This si the vector of drawable items that are currently highlighted.
|
|
|
This vector contains all of the objects to be drawn normally.
|
|
|
This is a vector of items that are not being drawn at the moment.
|
|
|
This position is the center around which the camer rotates.
|
|
|
This is a vector containing all of the current selection cubes.
|
|
|
this is the filesystem object that read the data in from the rood directory
|
|
|
|
|
|
This is the x coordinate od the center of the view.
|
|
|
this is the angle at which the whole view is currently rotated
|
|
|
this is the y coordinate of the center of the view
|
|
|
This si the z coordinate of the center of the view.
|
1.3.6