Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5366 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_widget.h


Ignore:
Timestamp:
Oct 12, 2005, 1:23:08 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more definitions of GLGui.
also a patch to the resource-manager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl_gui/glgui_widget.h

    r5365 r5366  
    11/*!
    2  * @file glgui_widget.h
    3  * The gl_widget of the openglGUI
    4  */
     2* @file glgui_widget.h
     3* The gl_widget of the openglGUI
     4*/
    55
    66#ifndef _GLGUI_WIDGET_H
     
    1515//! This is part of the openglGUI class
    1616/**
    17  * A widget is the main class of all the elements of th GUI.
    18  */
     17* A widget is the main class of all the elements of th GUI.
     18*/
    1919class GLGuiWidget : public Element2D {
    20  public:
    21   GLGuiWidget();
    22   virtual ~GLGuiWidget();
     20  public:
     21    GLGuiWidget();
     22    virtual ~GLGuiWidget();
    2323
    24   void init();
     24    void init();
    2525
    26   void show();
    27   void hide();
     26    void show();
     27    void hide();
    2828
    2929
    30   virtual void draw() = 0;
    31   virtual void update() = 0;
     30    virtual void draw() = 0;
     31    virtual void update() = 0;
    3232
    33  private:
    34   bool                  managed;          //!< if this GUI-element should be managed. true means it gets deleted with the deletion of it's parent.
    35   bool                  focusable;        //!< If it can receive focus.
    36   bool                  clickable;        //!< if it can be clicked upon.
     33  protected:
     34    Material*             backGround;
     35    GLuint                renderModel;
    3736
    38   Material*             backGround;
    39   GLuint                renderModel;
     37  private:
     38    bool                  managed;          //!< if this GUI-element should be managed. true means it gets deleted with the deletion of it's parent.
     39    bool                  focusable;        //!< If it can receive focus.
     40    bool                  clickable;        //!< if it can be clicked upon.
     41
    4042
    4143
Note: See TracChangeset for help on using the changeset viewer.