A scene that is used to render a single shape. More...
|virtual void||setLights ()|
|virtual void||renderGeometry (bool useMaterials)|
|virtual void||renderNormals ()|
A scene that is used to render a single shape.
This scene has no notion of the scene graph, so it will not be useful to you in assignments requiring the display of multiple shapes. Luckily, the first time you will need that kind of functionality is in the Sceneview assignment... and we've left that task up to you in the SceneviewScene class.
By default, the ShapesScene displays only a single triangle. You'll need to do a little work here to render your shapes. You could render the shapes directly in this class, or you could pass the work on to one or more subclasses. Think carefully about your design here - you'll be reusing your shapes multiple times during this course!
Render geometry for Shapes and Sceneview. We don't apply materials when useMaterials is false because we are drawing the outlines and want them colored black.
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. In Sceneview, the camera moves with the scene.