Changeset 7868 in orxonox.OLD for trunk/src/lib/gui/gl_gui
- Timestamp:
- May 26, 2006, 1:21:32 PM (19 years ago)
- Location:
- trunk/src/lib/gui/gl_gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_handler.cc
r7840 r7868 31 31 this->setClassID(CL_GLGUI_HANDLER, "GLGuiHandler"); 32 32 this->setName("GLGuiHandler"); 33 34 //this->subscribeEvent() 33 35 34 36 } -
trunk/src/lib/gui/gl_gui/glgui_widget.h
r7855 r7868 56 56 bool focusOverWidget(float x, float y); 57 57 58 // if something was clickt on the GUI-widget. 58 59 virtual void update() {}; 60 virtual void draw() const; 61 62 Material& backMaterial() { return this->backMat; }; 63 const Material& backMaterial() const { return this->backMat; }; 64 65 Material& frontMaterial() { return this->frontMat; }; 66 const Material& frontMaterial() const { return this->frontMat; }; 67 68 protected: 69 // if something was clickt on the GUI-widget. 59 70 virtual void clicked(const Event& event) {}; 60 71 virtual void released(const Event& event) {}; … … 65 76 virtual void destroyed() {}; 66 77 67 virtual void update() {};68 virtual void draw() const;69 78 70 Material& backMaterial() { return this->backMat; };71 Material& frontMaterial() { return this->frontMat; };72 73 protected:74 79 inline void startDraw() const { glPushMatrix(); glTranslatef(this->getAbsCoor2D().x, this->getAbsCoor2D().y, 0); }; 75 80 inline void endDraw() const { glPopMatrix(); };
Note: See TracChangeset
for help on using the changeset viewer.