- Timestamp:
- Oct 19, 2005, 6:30:07 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Makefile.am
r5353 r5406 13 13 util/libORXutils.a \ 14 14 lib/gui/gtk_gui/libORXgui.a \ 15 lib/gui/gl_gui/libORXglgui.a \16 15 lib/graphics/importer/libORXimporter.a \ 17 16 lib/graphics/libORXgraphics.a \ … … 23 22 lib/graphics/spatial_separation/libORXquadtree.a \ 24 23 lib/tinyxml/libtinyxml.a \ 24 lib/gui/gl_gui/libORXglgui.a \ 25 25 lib/shell/libORXshell.a 26 26 … … 28 28 lib/libORXlibs.a \ 29 29 lib/gui/gtk_gui/libORXgui.a \ 30 lib/gui/gl_gui/libORXglgui.a \31 30 lib/graphics/importer/libORXimporter.a \ 32 31 lib/graphics/libORXgraphics.a \ … … 38 37 lib/graphics/spatial_separation/libORXquadtree.a \ 39 38 lib/tinyxml/libtinyxml.a \ 39 lib/gui/gl_gui/libORXglgui.a \ 40 40 lib/shell/libORXshell.a \ 41 41 $(GTK2_LIBS) $(GTHREAD_LIBS) $(CURL_LIBS) -
trunk/src/Makefile.in
r5353 r5406 227 227 util/libORXutils.a \ 228 228 lib/gui/gtk_gui/libORXgui.a \ 229 lib/gui/gl_gui/libORXglgui.a \230 229 lib/graphics/importer/libORXimporter.a \ 231 230 lib/graphics/libORXgraphics.a \ … … 237 236 lib/graphics/spatial_separation/libORXquadtree.a \ 238 237 lib/tinyxml/libtinyxml.a \ 238 lib/gui/gl_gui/libORXglgui.a \ 239 239 lib/shell/libORXshell.a 240 240 … … 242 242 lib/libORXlibs.a \ 243 243 lib/gui/gtk_gui/libORXgui.a \ 244 lib/gui/gl_gui/libORXglgui.a \245 244 lib/graphics/importer/libORXimporter.a \ 246 245 lib/graphics/libORXgraphics.a \ … … 252 251 lib/graphics/spatial_separation/libORXquadtree.a \ 253 252 lib/tinyxml/libtinyxml.a \ 253 lib/gui/gl_gui/libORXglgui.a \ 254 254 lib/shell/libORXshell.a \ 255 255 $(GTK2_LIBS) $(GTHREAD_LIBS) $(CURL_LIBS) -
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 -
trunk/src/story_entities/world.cc
r5401 r5406 924 924 { 925 925 GarbageCollector::getInstance()->update(); 926 GraphicsEngine::getInstance()->update(this->dtS); 926 927 NullParent::getInstance()->update (this->dtS); 927 GraphicsEngine::getInstance()->update(this->dtS);928 928 929 929 SoundEngine::getInstance()->update();
Note: See TracChangeset
for help on using the changeset viewer.