Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6287 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_widget.cc


Ignore:
Timestamp:
Dec 25, 2005, 5:32:21 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: some gui-work

File:
1 edited

Legend:

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

    r5690 r6287  
    1717
    1818#include "glgui_widget.h"
     19
     20#include "material.h"
    1921
    2022#include "debug.h"
     
    5254//  this->setParent2D((Element2D*)NULL);
    5355
    54   this->backMat = NULL;
    55   this->backModel = 0;
     56  this->backMat = new Material();
     57  this->backMat->setDiffuse(0, 0, 0);
     58
    5659  this->frontMat = NULL;
    5760  this->frontModel = 0;
     
    104107  this->setVisibility(true);
    105108}
     109
     110
     111void GLGuiWidget::draw() const
     112{
     113  this->backMat->select();
     114
     115  glBegin(GL_QUADS);
     116
     117
     118  glVertex2d(0,0);
     119  glVertex2d(0, this->getSizeY2D());
     120  glVertex2d(this->getSizeX2D(), this->getSizeY2D());
     121  glVertex2d(this->getSizeX2D(),0);
     122
     123  glEnd();
     124}
     125
Note: See TracChangeset for help on using the changeset viewer.