BrainTrain
|
Control Room Class, derived from PositionAttitudeTransform, set ups the whole room as its own children. More...
#include <ControlRoom.h>
Public Member Functions | |
ControlRoom (double roomSize, int lod, brtr::ToonTexSwitcherCallback &toonCallback, brtr::ProgramSwitcherCallback &programCallback) | |
Constructor. More... | |
Protected Member Functions | |
~ControlRoom () | |
Private Member Functions | |
osg::ref_ptr< osg::Group > | createRoomSurrounding (double roomSize, int lod) |
osg::ref_ptr< osg::Group > | createChessFigures (brtr::ToonTexSwitcherCallback &toonCallback, brtr::ProgramSwitcherCallback &programCallback) |
osg::ref_ptr< osg::Material > | createMaterial (osg::Vec4 diffuse, osg::Vec4 ambient, osg::Vec4 specular=osg::Vec4(0.7, 0.7, 0.7, 1), double shininess=42.0) |
Control Room Class, derived from PositionAttitudeTransform, set ups the whole room as its own children.
sets always a light as light0, client should not use this light number any more the chess figures alongside with the provided interactioncallbacks are also set up
Definition at line 18 of file ControlRoom.h.
brtr::ControlRoom::ControlRoom | ( | double | roomSize, |
int | lod, | ||
brtr::ToonTexSwitcherCallback & | toonCallback, | ||
brtr::ProgramSwitcherCallback & | programCallback | ||
) |
Constructor.
roomSize | size of the room, height is roomsize/2 |
lod | level of detail, the higher the more triangles are created |
toonCallback | ToonTexSwitcherCallback, will be attached to first chess figure |
programCallback | ProgramSwitcherCallback, will be attached to third chess figure |
Definition at line 13 of file ControlRoom.cpp.
|
inlineprotected |
Definition at line 31 of file ControlRoom.h.
|
private |
Definition at line 100 of file ControlRoom.cpp.
|
private |
Definition at line 145 of file ControlRoom.cpp.
|
private |
Definition at line 26 of file ControlRoom.cpp.