Simple static class renderer built on Glut.
More...
#include <SurgSim/Testing/VisualTestCommon/GlutRenderer.h>
|
static void | run () |
| Initializes and runs the Glut main loop. This function will block until the Glut graphics window is closed. More...
|
|
static void | setCamera (std::shared_ptr< GlutCamera > camera) |
| Sets the camera used to control the view of the scene. More...
|
|
static void | addObject (std::shared_ptr< GlutRenderObject > object) |
| Adds an object to the scene. More...
|
|
|
static void | initialize () |
| Initializes the Glut window. More...
|
|
static void | reshape (GLint width, GLint height) |
| Glut reshape function which handles the resizing of the window. More...
|
|
static void | display () |
| Glut display function which handles the drawing of the scene. More...
|
|
static void | drawObjects () |
| Iterates through the scene objects to draw them. More...
|
|
Simple static class renderer built on Glut.
§ addObject()
static void GlutRenderer::addObject |
( |
std::shared_ptr< GlutRenderObject > |
object | ) |
|
|
inlinestatic |
Adds an object to the scene.
- Parameters
-
§ display()
void GlutRenderer::display |
( |
| ) |
|
|
staticprivate |
Glut display function which handles the drawing of the scene.
§ drawObjects()
static void GlutRenderer::drawObjects |
( |
| ) |
|
|
inlinestaticprivate |
Iterates through the scene objects to draw them.
§ initialize()
void GlutRenderer::initialize |
( |
| ) |
|
|
staticprivate |
Initializes the Glut window.
§ reshape()
static void GlutRenderer::reshape |
( |
GLint |
width, |
|
|
GLint |
height |
|
) |
| |
|
inlinestaticprivate |
Glut reshape function which handles the resizing of the window.
§ run()
static void GlutRenderer::run |
( |
| ) |
|
|
inlinestatic |
Initializes and runs the Glut main loop. This function will block until the Glut graphics window is closed.
§ setCamera()
static void GlutRenderer::setCamera |
( |
std::shared_ptr< GlutCamera > |
camera | ) |
|
|
inlinestatic |
Sets the camera used to control the view of the scene.
- Parameters
-
§ m_camera
std::shared_ptr< GlutCamera > GlutRenderer::m_camera = nullptr |
|
staticprivate |
Camera which controls the view of the scene.
§ m_height
int GlutRenderer::m_height = 768 |
|
staticprivate |
§ m_objects
§ m_width
int GlutRenderer::m_width = 1024 |
|
staticprivate |
The documentation for this class was generated from the following files: