Protected Member Functions

ShapesScene Class Reference

A scene that is used to render a single shape. More...

#include <ShapesScene.h>

Inherits OpenGLScene.

Collaboration diagram for ShapesScene:
Collaboration graph
[legend]

List of all members.

Protected Member Functions

virtual void setLights ()
virtual void renderGeometry (bool useMaterials)
virtual void renderNormals ()

Detailed Description

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!

Author:
Evan Wallace (edwallac)
Ben Herila (bherila)
Date:
9/1/2010

Member Function Documentation

void ShapesScene::renderGeometry ( bool  useMaterials  )  [protected, virtual]

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.

Implements OpenGLScene.

void ShapesScene::renderNormals (  )  [protected, virtual]

Override this and put all renderNormal() calls in here (rendering normals are optional)

Reimplemented from OpenGLScene.

void ShapesScene::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. In Sceneview, the camera moves with the scene.

Implements OpenGLScene.


The documentation for this class was generated from the following files: