/[usata]/usata2/src/objects/test_object.cpp
ViewVC logotype

Diff of /usata2/src/objects/test_object.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by skunix, Sun Jan 9 09:39:57 2005 UTC revision 1.9 by skunix, Mon Jan 10 20:10:21 2005 UTC
# Line 47  namespace Line 47  namespace
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)

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26