Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3614 in orxonox.OLD for orxonox/trunk/src/world_entities/primitive.h


Ignore:
Timestamp:
Mar 21, 2005, 2:25:10 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: enhanced primitives, now more properties to set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/primitive.h

    r3612 r3614  
    1717  virtual ~Primitive ();
    1818
     19  void setForm(pForm form);
     20  void setSize(float size);
     21  void setMaterial(Material* material);
     22  void setTexture(char* name);
     23 
     24
    1925  virtual void tick (float time);
    2026  virtual void hit (WorldEntity* weapon, Vector* loc);
    2127  virtual void collide (WorldEntity* other,  Uint32 ownhitflags, Uint32 otherhitflags);
     28  virtual void draw ();
    2229
    23   virtual void draw ();
    24   void glDrawCube();
    2530
    2631
    2732 private:
    28   GLUquadricObj *object; //!< the object to be rendered
    29   Material *material;    //!< A Material for the SkySphere.
     33  GLUquadricObj* object; //!< the object to be rendered
     34  Material* material;    //!< A Material for the SkySphere.
    3035  pForm form;
     36  char* textureName;
     37  float size;
    3138
     39  void glDrawCube();
    3240};
    3341
Note: See TracChangeset for help on using the changeset viewer.