mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 12:53:03 +02:00
simplified per stephens code review
This commit is contained in:
parent
17c898c151
commit
8b5901d904
2 changed files with 3 additions and 4 deletions
|
@ -57,7 +57,8 @@ Head::Head() :
|
|||
_bodyRotation(0.0f, 0.0f, 0.0f),
|
||||
_headRotation(0.0f, 0.0f, 0.0f),
|
||||
_renderLookatVectors(false),
|
||||
_mohawkExists(false)
|
||||
_mohawkTriangleFan(NULL),
|
||||
_mohawkColors(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -210,11 +211,10 @@ void Head::createMohawk() {
|
|||
_mohawkColors[i] = randFloat() * basicColor;
|
||||
|
||||
}
|
||||
_mohawkExists = true;
|
||||
}
|
||||
|
||||
void Head::renderMohawk() {
|
||||
if (!_mohawkExists) {
|
||||
if (!_mohawkTriangleFan) {
|
||||
createMohawk();
|
||||
} else {
|
||||
glPushMatrix();
|
||||
|
|
|
@ -83,7 +83,6 @@ private:
|
|||
bool _renderLookatVectors;
|
||||
glm::vec3* _mohawkTriangleFan;
|
||||
glm::vec3* _mohawkColors;
|
||||
bool _mohawkExists;
|
||||
|
||||
// private methods
|
||||
void createMohawk();
|
||||
|
|
Loading…
Reference in a new issue