#include <ModelRendererTree.h>

Public Member Functions | |
| ModelRendererTree (Model *model, ModelID &id) | |
| virtual | ~ModelRendererTree () |
| virtual void | draw (float currentFrame, float distance, float fade, bool setState) |
| virtual void | drawBottomAligned (float currentFrame, float distance, float fade, bool setState) |
| virtual Model * | getModel () |
| void | drawInternal (float distance, float fade, bool setState) |
Static Public Member Functions | |
| static void | setSkipPre (bool skip) |
| static void | drawInternalPre (bool setState) |
Protected Attributes | |
| Model * | model_ |
| int | treeType_ |
Static Protected Attributes | |
| static bool | skipPre_ = false |
| static GLuint | treePineList = 0 |
| static GLuint | treePineSmallList = 0 |
| static GLuint | treePine2List = 0 |
| static GLuint | treePine2SmallList = 0 |
| static GLuint | treePine3List = 0 |
| static GLuint | treePine3SmallList = 0 |
| static GLuint | treePine4List = 0 |
| static GLuint | treePine4SmallList = 0 |
| static GLuint | treePine2SnowList = 0 |
| static GLuint | treePine2SnowSmallList = 0 |
| static GLuint | treePine3SnowList = 0 |
| static GLuint | treePine3SnowSmallList = 0 |
| static GLuint | treePine4SnowList = 0 |
| static GLuint | treePine4SnowSmallList = 0 |
| static GLuint | treePineSnowList = 0 |
| static GLuint | treePineSnowSmallList = 0 |
| static GLuint | treePineBurntList = 0 |
| static GLuint | treePineBurntSmallList = 0 |
| static GLuint | treePineYellowList = 0 |
| static GLuint | treePineYellowSmallList = 0 |
| static GLuint | treePineLightList = 0 |
| static GLuint | treePineLightSmallList = 0 |
| static GLuint | treePalmList = 0 |
| static GLuint | treePalmSmallList = 0 |
| static GLuint | treePalm2List = 0 |
| static GLuint | treePalm2SmallList = 0 |
| static GLuint | treePalm3List = 0 |
| static GLuint | treePalm3SmallList = 0 |
| static GLuint | treePalm4List = 0 |
| static GLuint | treePalm4SmallList = 0 |
| static GLuint | treePalmBList = 0 |
| static GLuint | treePalmB2List = 0 |
| static GLuint | treePalmB3List = 0 |
| static GLuint | treePalmB4List = 0 |
| static GLuint | treePalmB5List = 0 |
| static GLuint | treePalmB6List = 0 |
| static GLuint | treePalmB7List = 0 |
| static GLuint | treePalmBurntList = 0 |
| static GLuint | treePalmBurntSmallList = 0 |
| static GLuint | treeOakList = 0 |
| static GLuint | treeOakSmallList = 0 |
| static GLuint | treeOak2List = 0 |
| static GLuint | treeOak2SmallList = 0 |
| static GLuint | treeOak3List = 0 |
| static GLuint | treeOak3SmallList = 0 |
| static GLuint | treeOak4List = 0 |
| static GLuint | treeOak4SmallList = 0 |
| static GLTexture | pineTextureA_ |
| static GLTexture | pineTextureB_ |
| static GLTexture | palmTextureA_ |
| static GLTexture | palmTextureB_ |
| static GLTexture | oakTextureA_ |
Definition at line 29 of file ModelRendererTree.h.
Definition at line 340 of file ModelRendererTree.cpp.
References TreeModelFactory::getTypes(), and treeType_.
| ModelRendererTree::~ModelRendererTree | ( | ) | [virtual] |
Definition at line 354 of file ModelRendererTree.cpp.
| void ModelRendererTree::draw | ( | float | currentFrame, | |
| float | distance, | |||
| float | fade, | |||
| bool | setState | |||
| ) | [virtual] |
Implements ModelRenderer.
Definition at line 358 of file ModelRendererTree.cpp.
References drawBottomAligned().
| void ModelRendererTree::drawBottomAligned | ( | float | currentFrame, | |
| float | distance, | |||
| float | fade, | |||
| bool | setState | |||
| ) | [virtual] |
Implements ModelRenderer.
Definition at line 364 of file ModelRendererTree.cpp.
References drawInternal(), drawInternalPre(), and skipPre_.
Referenced by draw().
| virtual Model* ModelRendererTree::getModel | ( | ) | [inline, virtual] |
| static void ModelRendererTree::setSkipPre | ( | bool | skip | ) | [inline, static] |
Definition at line 42 of file ModelRendererTree.h.
References skipPre_.
Referenced by RenderTargets::draw(), and RenderTargets::shadowDraw().
| void ModelRendererTree::drawInternalPre | ( | bool | setState | ) | [static] |
Definition at line 372 of file ModelRendererTree.cpp.
References GLTexture::create(), DIALOG_ASSERT, drawPalmLevel(), drawPalmTrunc(), drawPineLevel(), drawPineTrunc(), ImageHandle::getBits(), S3D::getDataFile(), OptionsDisplay::getNoModelLighting(), GL_AMBIENT, GL_COMPILE, GL_DIFFUSE, GL_EMISSION, GL_FRONT_AND_BACK, GL_SHININESS, GL_SPECULAR, glColor3f(), glColor4f(), glEndList(), glGenLists(), glMaterialf(), glMaterialfv(), glNewList(), OptionsDisplay::instance(), GLState::LIGHT1_OFF, GLState::LIGHT1_ON, GLState::LIGHTING_OFF, GLState::LIGHTING_ON, ImageFactory::loadImageHandle(), GLState::NORMALIZE_OFF, GLState::NORMALIZE_ON, oakTextureA_, palmTextureA_, palmTextureB_, pineTextureA_, pineTextureB_, GLState::TEXTURE_ON, treeOak2List, treeOak2SmallList, treeOak3List, treeOak3SmallList, treeOak4List, treeOak4SmallList, treeOakList, treeOakSmallList, treePalm2List, treePalm2SmallList, treePalm3List, treePalm3SmallList, treePalm4List, treePalm4SmallList, treePalmB2List, treePalmB3List, treePalmB4List, treePalmB5List, treePalmB6List, treePalmB7List, treePalmBList, treePalmBurntList, treePalmBurntSmallList, treePalmList, treePalmSmallList, treePine2List, treePine2SmallList, treePine2SnowList, treePine2SnowSmallList, treePine3List, treePine3SmallList, treePine3SnowList, treePine3SnowSmallList, treePine4List, treePine4SmallList, treePine4SnowList, treePine4SnowSmallList, treePineBurntList, treePineBurntSmallList, treePineLightList, treePineLightSmallList, treePineList, treePineSmallList, treePineSnowList, treePineSnowSmallList, treePineYellowList, and treePineYellowSmallList.
Referenced by RenderTargets::draw(), drawBottomAligned(), and RenderTargets::shadowDraw().
| void ModelRendererTree::drawInternal | ( | float | distance, | |
| float | fade, | |||
| bool | setState | |||
| ) |
Definition at line 690 of file ModelRendererTree.cpp.
References GLInfo::addNoTriangles(), DIALOG_ASSERT, GLTexture::draw(), TreeModelFactory::eOak, TreeModelFactory::eOak2, TreeModelFactory::eOak3, TreeModelFactory::eOak4, TreeModelFactory::ePalm2, TreeModelFactory::ePalm3, TreeModelFactory::ePalm4, TreeModelFactory::ePalmB, TreeModelFactory::ePalmB2, TreeModelFactory::ePalmB3, TreeModelFactory::ePalmB4, TreeModelFactory::ePalmB5, TreeModelFactory::ePalmB6, TreeModelFactory::ePalmB7, TreeModelFactory::ePalmBurnt, TreeModelFactory::ePalmNormal, TreeModelFactory::ePine2, TreeModelFactory::ePine2Snow, TreeModelFactory::ePine3, TreeModelFactory::ePine3Snow, TreeModelFactory::ePine4, TreeModelFactory::ePine4Snow, TreeModelFactory::ePineBurnt, TreeModelFactory::ePineLight, TreeModelFactory::ePineNormal, TreeModelFactory::ePineSnow, TreeModelFactory::ePineYellow, glCallList(), OptionsDisplay::instance(), oakTextureA_, palmTextureA_, palmTextureB_, pineTextureA_, pineTextureB_, treeOak2List, treeOak2SmallList, treeOak3List, treeOak3SmallList, treeOak4List, treeOak4SmallList, treeOakList, treeOakSmallList, treePalm2List, treePalm2SmallList, treePalm3List, treePalm3SmallList, treePalm4List, treePalm4SmallList, treePalmB2List, treePalmB3List, treePalmB4List, treePalmB5List, treePalmB6List, treePalmB7List, treePalmBList, treePalmBurntList, treePalmBurntSmallList, treePalmList, treePalmSmallList, treePine2List, treePine2SmallList, treePine2SnowList, treePine2SnowSmallList, treePine3List, treePine3SmallList, treePine3SnowList, treePine3SnowSmallList, treePine4List, treePine4SmallList, treePine4SnowList, treePine4SnowSmallList, treePineBurntList, treePineBurntSmallList, treePineLightList, treePineLightSmallList, treePineList, treePineSmallList, treePineSnowList, treePineSnowSmallList, treePineYellowList, treePineYellowSmallList, and treeType_.
Referenced by drawBottomAligned().
Model* ModelRendererTree::model_ [protected] |
int ModelRendererTree::treeType_ [protected] |
Definition at line 48 of file ModelRendererTree.h.
Referenced by drawInternal(), and ModelRendererTree().
bool ModelRendererTree::skipPre_ = false [static, protected] |
Definition at line 50 of file ModelRendererTree.h.
Referenced by drawBottomAligned(), and setSkipPre().
GLuint ModelRendererTree::treePineList = 0 [static, protected] |
Definition at line 51 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePineSmallList = 0 [static, protected] |
Definition at line 51 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePine2List = 0 [static, protected] |
Definition at line 52 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePine2SmallList = 0 [static, protected] |
Definition at line 52 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePine3List = 0 [static, protected] |
Definition at line 53 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePine3SmallList = 0 [static, protected] |
Definition at line 53 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePine4List = 0 [static, protected] |
Definition at line 54 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePine4SmallList = 0 [static, protected] |
Definition at line 54 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePine2SnowList = 0 [static, protected] |
Definition at line 55 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePine2SnowSmallList = 0 [static, protected] |
Definition at line 55 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePine3SnowList = 0 [static, protected] |
Definition at line 56 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePine3SnowSmallList = 0 [static, protected] |
Definition at line 56 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePine4SnowList = 0 [static, protected] |
Definition at line 57 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePine4SnowSmallList = 0 [static, protected] |
Definition at line 57 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePineSnowList = 0 [static, protected] |
Definition at line 58 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePineSnowSmallList = 0 [static, protected] |
Definition at line 58 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePineBurntList = 0 [static, protected] |
Definition at line 59 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePineBurntSmallList = 0 [static, protected] |
Definition at line 59 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePineYellowList = 0 [static, protected] |
Definition at line 60 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePineYellowSmallList = 0 [static, protected] |
Definition at line 60 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePineLightList = 0 [static, protected] |
Definition at line 61 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePineLightSmallList = 0 [static, protected] |
Definition at line 61 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePalmList = 0 [static, protected] |
Definition at line 62 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePalmSmallList = 0 [static, protected] |
Definition at line 62 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePalm2List = 0 [static, protected] |
Definition at line 63 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePalm2SmallList = 0 [static, protected] |
Definition at line 63 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePalm3List = 0 [static, protected] |
Definition at line 64 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePalm3SmallList = 0 [static, protected] |
Definition at line 64 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePalm4List = 0 [static, protected] |
Definition at line 65 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePalm4SmallList = 0 [static, protected] |
Definition at line 65 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePalmBList = 0 [static, protected] |
Definition at line 66 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePalmB2List = 0 [static, protected] |
Definition at line 67 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePalmB3List = 0 [static, protected] |
Definition at line 68 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePalmB4List = 0 [static, protected] |
Definition at line 69 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePalmB5List = 0 [static, protected] |
Definition at line 70 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePalmB6List = 0 [static, protected] |
Definition at line 71 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePalmB7List = 0 [static, protected] |
Definition at line 72 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePalmBurntList = 0 [static, protected] |
Definition at line 73 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treePalmBurntSmallList = 0 [static, protected] |
Definition at line 73 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treeOakList = 0 [static, protected] |
Definition at line 74 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treeOakSmallList = 0 [static, protected] |
Definition at line 74 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treeOak2List = 0 [static, protected] |
Definition at line 75 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treeOak2SmallList = 0 [static, protected] |
Definition at line 75 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treeOak3List = 0 [static, protected] |
Definition at line 76 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treeOak3SmallList = 0 [static, protected] |
Definition at line 76 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treeOak4List = 0 [static, protected] |
Definition at line 77 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLuint ModelRendererTree::treeOak4SmallList = 0 [static, protected] |
Definition at line 77 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLTexture ModelRendererTree::pineTextureA_ [static, protected] |
Definition at line 79 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLTexture ModelRendererTree::pineTextureB_ [static, protected] |
Definition at line 80 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLTexture ModelRendererTree::palmTextureA_ [static, protected] |
Definition at line 81 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLTexture ModelRendererTree::palmTextureB_ [static, protected] |
Definition at line 82 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
GLTexture ModelRendererTree::oakTextureA_ [static, protected] |
Definition at line 83 of file ModelRendererTree.h.
Referenced by drawInternal(), and drawInternalPre().
1.5.3