Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6295 in orxonox.OLD for trunk/src/lib/graphics


Ignore:
Timestamp:
Dec 26, 2005, 3:01:14 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: new GUI-functionality

Location:
trunk/src/lib/graphics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/material.cc

    r5437 r6295  
    7575{
    7676  // setting diffuse color
    77   //  glColor3f (diffuse[0], diffuse[1], diffuse[2]);
     77  glColor3f (diffuse[0], diffuse[1], diffuse[2]);
    7878  glMaterialfv(GL_FRONT, GL_DIFFUSE, this->diffuse);
    7979
  • trunk/src/lib/graphics/render2D/element_2d.cc

    r6142 r6295  
    2525#include "graphics_engine.h"
    2626#include "load_param.h"
    27 #include "parser/tinyxml/tinyxml.h"
    2827#include "class_list.h"
    2928
     
    4241
    4342/**
    44  * standard constructor
     43 * @brief standard constructor
    4544 * @param parent the parent to set for this Element2D
    4645 *
     
    6059
    6160/**
    62  * standard deconstructor
     61 * @brief standard deconstructor
    6362 *
    6463 * There are two general ways to delete an Element2D
     
    9796
    9897/**
    99  * initializes a Element2D
     98 * @brief initializes a Element2D
    10099 */
    101100void Element2D::init()
     
    121120
    122121/**
    123  * Loads the Parameters of an Element2D from...
     122 * @brief Loads the Parameters of an Element2D from...
    124123 * @param root The XML-element to load from
    125124 */
     
    160159
    161160  // cycling properties
    162   if (root != NULL)
    163   {
    164     LOAD_PARAM_START_CYCLE(root, element);
    165     {
    166       LoadParam_CYCLE(element, "parent", this, Element2D, addChild2D)
    167           .describe("adds a new Child to the current Node.");
    168     }
    169     LOAD_PARAM_END_CYCLE(element);
    170   }
     161  LOAD_PARAM_START_CYCLE(root, element);
     162  {
     163    LoadParam_CYCLE(element, "parent", this, Element2D, addChild2D)
     164        .describe("adds a new Child to the current Node.");
     165  }
     166  LOAD_PARAM_END_CYCLE(element);
    171167}
    172168
     
    511507void Element2D::addChild2D (Element2D* child)
    512508{
     509  assert(child != NULL);
    513510  if( likely(child->parent != NULL))
    514511  {
     
    662659void Element2D::eraseChild(Element2D* child)
    663660{
     661  assert (this != NULL && child != NULL);
    664662  std::list<Element2D*>::iterator childIT = std::find(this->children.begin(), this->children.end(), child);
    665663  this->children.erase(childIT);
     
    667665
    668666/**
    669  * sets the mode of this parent manually
     667 * @brief sets the mode of this parent manually
    670668 * @param parentMode a String representing this parentingMode
    671669 */
     
    10511049
    10521050/**
    1053  *  creates the one and only NullElement2D
    1054  * @param absCoordinate the cordinate of the Parent (normally Vector(0,0,0))
     1051 * @brief creates the one and only NullElement2D
    10551052 */
    10561053NullElement2D::NullElement2D () : Element2D(NULL, E2D_LAYER_BELOW_ALL)
Note: See TracChangeset for help on using the changeset viewer.