A complex scene consisting of multiple objects. Students will implement this class in the Sceneview assignment. More...
#include <SceneviewScene.h>
Inherits OpenGLScene.

Protected Member Functions | |
| virtual void | setLights () |
| virtual void | renderGeometry (bool useMaterials) |
| virtual void | renderNormals () |
A complex scene consisting of multiple objects. Students will implement this class in the Sceneview assignment.
Here you will implement your scene graph. The structure is up to you - feel free to create new classes and data structures as you see fit. We are providing this SceneviewScene class for you to use as a stencil if you like.
Keep in mind that you'll also be rendering entire scenes in the next two assignments, Intersect and Ray. The difference between this assignment and those that follow is here, we are using OpenGL to do the rendering. In Intersect and Ray, you will be responsible for that.
| void SceneviewScene::renderGeometry | ( | bool | useMaterials | ) | [protected, virtual] |
Render geometry for Shapes and Sceneview, don't apply materials when useMaterials is false because we are drawing the outlines and want them colored black.
Implements OpenGLScene.
| void SceneviewScene::renderNormals | ( | ) | [protected, virtual] |
Override this and put all renderNormal() calls in here. Again, rendering normals is optional but recommended.
Reimplemented from OpenGLScene.
| void SceneviewScene::setLights | ( | ) | [protected, virtual] |
Apply the camera matrices and enable or disable lights as necessary. These two steps cannot be split up because for Shapes the light moves with the camera while for Sceneview the camera moves with the scene.
Implements OpenGLScene.
1.7.1