Changeset 5406 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Oct 19, 2005, 6:30:07 PM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/coord/p_node.cc
r5397 r5406 12 12 main-programmer: Patrick Boenzli 13 13 co-programmer: 14 15 @todo Smooth-Parent: delay, speed16 14 */ 17 15 … … 31 29 #include "vector.h" 32 30 33 //#include "vector.h" 34 //#include "quaternion.h" 31 #include "color.h" 35 32 36 33 using namespace std; … … 278 275 this->setAbsCoor(Vector(x, y, z)); 279 276 } 277 278 /** 279 * @param absCoord set absolute coordinate 280 * @todo check off 281 */ 282 void PNode::setAbsCoorSoft (const Vector& absCoordSoft, float bias) 283 { 284 if (this->toCoordinate == NULL) 285 this->toCoordinate = new Vector; 286 287 if( likely(this->parentMode & PNODE_MOVEMENT)) 288 { 289 /* if you have set the absolute coordinates this overrides all other changes */ 290 if (likely(this->parent != NULL)) 291 *this->toCoordinate = absCoordSoft - parent->getAbsCoor (); 292 else 293 *this->toCoordinate = absCoordSoft; 294 } 295 if( this->parentMode & PNODE_ROTATE_MOVEMENT) 296 { 297 if (likely(this->parent != NULL)) 298 *this->toCoordinate = absCoordSoft - parent->getAbsCoor (); 299 else 300 *this->toCoordinate = absCoordSoft; 301 } 302 } 303 280 304 281 305 /** … … 695 719 } 696 720 } 697 #include "color.h"698 721 699 722 /** … … 767 790 { 768 791 // drawing the Dependency graph 769 792 if (this != NullParent::getInstance()) 770 793 { 771 794 glBegin(GL_LINES); -
trunk/src/lib/coord/p_node.h
r5405 r5406 65 65 void setAbsCoor (const Vector& absCoord); 66 66 void setAbsCoor (float x, float y, float z); 67 void setAbsCoorSoft(const Vector& absCoordSoft, float bias = 1.0); 68 void setAbsCoorSoft(float x, float y, float z, float bias = 1.0); 67 69 /** @returns the absolute position */ 68 70 inline const Vector& getAbsCoor () const { return this->absCoordinate; }; -
trunk/src/lib/graphics/graphics_engine.cc
r5397 r5406 508 508 void GraphicsEngine::update(float dt) 509 509 { 510 NullElement2D::getInstance()->update2D(dt);510 Render2D::getInstance()->update(dt); 511 511 } 512 512 -
trunk/src/lib/graphics/render2D/render_2d.cc
r5404 r5406 52 52 53 53 /** 54 * updates all the 2d-elements 55 * @param dt the timestep since last dt 56 */ 57 void Render2D::update(float dt) 58 { 59 NullElement2D::getInstance()->update2D(dt); 60 } 61 62 63 /** 54 64 * ticks all the 2d-elements 55 65 * @param dt the timestep since last dt -
trunk/src/lib/graphics/render2D/render_2d.h
r5405 r5406 22 22 inline static Render2D* getInstance() { if (!singletonRef) singletonRef = new Render2D(); return singletonRef; }; 23 23 24 void update(float dt); 24 25 void tick(float dt); 25 26 void draw(short layer) const; -
trunk/src/lib/gui/gl_gui/Makefile.am
r5384 r5406 10 10 11 11 libORXglgui_a_SOURCES = glmenu/glmenu_imagescreen.cc \ 12 13 12 glgui_handler.cc \ 13 glgui_mainwidget.cc \ 14 14 glgui_widget.cc \ 15 15 glgui_button.cc \ -
trunk/src/lib/gui/gl_gui/Makefile.in
r5384 r5406 202 202 libORXglgui_a_CPPFLAGS = -DBUILD_ORXONOX 203 203 libORXglgui_a_SOURCES = glmenu/glmenu_imagescreen.cc \ 204 205 204 glgui_handler.cc \ 205 glgui_mainwidget.cc \ 206 206 glgui_widget.cc \ 207 207 glgui_button.cc \ -
trunk/src/lib/gui/gl_gui/glgui_handler.cc
r5401 r5406 18 18 #include "glgui_handler.h" 19 19 #include "event_handler.h" 20 21 #include "glgui_mainwidget.h" 20 22 21 23 using namespace std; … … 63 65 64 66 } 67 68 void GLGuiHandler::draw() 69 { 70 GLGuiMainWidget::getInstance()->draw2D(E2D_LAYER_TOP); 71 } 72 73 74 void GLGuiHandler::tick(float dt) 75 { 76 77 } -
trunk/src/lib/gui/gl_gui/glgui_handler.h
r5405 r5406 17 17 virtual ~GLGuiHandler(void); 18 18 /** @returns a Pointer to the only object of this Class */ 19 inline static GLGuiHandler* getInstance(void) { if (! singletonRef) singletonRef = new GLGuiHandler(); returnsingletonRef; };19 inline static GLGuiHandler* getInstance(void) { if (!GLGuiHandler::singletonRef) GLGuiHandler::singletonRef = new GLGuiHandler(); return GLGuiHandler::singletonRef; }; 20 20 21 21 void activate(); … … 24 24 25 25 virtual void process(const Event &event); 26 void draw(); 27 void tick(float dt); 26 28 27 29 private: -
trunk/src/lib/gui/gl_gui/glgui_widget.cc
r5404 r5406 50 50 this->clickable = true; 51 51 this->setVisibility(GLGUI_WIDGET_DEFAULT_VISIBLE); 52 this->setParent2D((Element2D*)NULL);52 // this->setParent2D((Element2D*)NULL); 53 53 54 54 this->backMat = NULL; -
trunk/src/lib/shell/shell_completion.cc
r5330 r5406 33 33 /** 34 34 * standard constructor 35 */35 */ 36 36 ShellCompletion::ShellCompletion(ShellInput* input) 37 37 { … … 43 43 /** 44 44 * standard deconstructor 45 */45 */ 46 46 ShellCompletion::~ShellCompletion () 47 47 { … … 299 299 300 300 /** 301 * searches for classes, which beginn with completionBegin301 * @brief searches for classes, which beginn with completionBegin 302 302 * @param inputList the List to parse through 303 303 * @param completionBegin the beginning string
Note: See TracChangeset
for help on using the changeset viewer.