47 |
{ |
{ |
48 |
glBegin(GL_TRIANGLES); |
glBegin(GL_TRIANGLES); |
49 |
glVertex3f(1.0, 0.0, -1.0); |
glVertex3f(1.0, 0.0, -1.0); |
50 |
glVertex3f(1.0, -0.5, -1.0); |
glVertex3f(1.0, -0.2, -1.0); |
51 |
glVertex3f(0, -0.5 ,-1.0); |
glVertex3f(0, -0.5 ,-1.0); |
52 |
glEnd(); |
glEnd(); |
53 |
} |
} |
54 |
void |
void |
55 |
Something::realize(Usata& game, const Object_sp& self) |
Something::realize(Usata& game, const Object_sp& self) |
56 |
{ |
{ |
57 |
std::string p("gui"); |
game.scene().add(self, "gui"); |
|
game.scene().add_child(self, p); |
|
58 |
} |
} |
59 |
|
|
60 |
USATA_OBJECT_REGISTER(Something) |
USATA_OBJECT_REGISTER(Something) |