Changeset 7428 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Apr 29, 2006, 12:13:38 AM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 7 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/coord/p_node.cc
r7221 r7428 29 29 30 30 #include "synchronizeable.h" 31 32 #include "shell_command.h"33 SHELL_COMMAND(debugNode, PNode, debugNodeSC);34 31 35 32 using namespace std; -
trunk/src/lib/graphics/graphics_engine.cc
r7370 r7428 571 571 // LightManager::getInstance()->draw(); 572 572 573 GraphicsEngine::storeMatrices();574 Shader::suspendShader();575 576 Render2D::getInstance()->draw(E2D_LAYER_ALL);577 Shader::restoreShader();578 579 573 if (this->graphicsEffects != NULL) 580 574 { … … 584 578 dynamic_cast<GraphicsEffect*>(*it)->draw(); 585 579 } 580 GraphicsEngine::storeMatrices(); 581 Shader::suspendShader(); 582 583 Render2D::getInstance()->draw(E2D_LAYER_ALL); 584 Shader::restoreShader(); 586 585 } 587 586 -
trunk/src/lib/graphics/text_engine/font.cc
r7221 r7428 29 29 #include "stdlibincl.h" 30 30 #include "compiler.h" 31 32 31 using namespace std; 33 32 -
trunk/src/lib/graphics/text_engine/font.h
r7221 r7428 74 74 inline TTF_Font* getTTF() const { return this->fontTTF; }; 75 75 76 77 76 /** @returns the default Font */ 78 77 inline static Font* getDefaultFont() { if (Font::defaultFont == NULL) initDefaultFont(); return Font::defaultFont; }; -
trunk/src/lib/graphics/text_engine/text_engine.cc
r7193 r7428 37 37 38 38 #include "debug.h" 39 40 39 /////////////////// 41 40 /// TEXT-ENGINE /// … … 104 103 /** 105 104 * function to disable TTF_fonts 106 */105 */ 107 106 void TextEngine::disableFonts() 108 107 { -
trunk/src/lib/lang/class_list.cc
r7403 r7428 22 22 #include "debug.h" 23 23 #include <string.h> 24 #include < math.h>24 #include <cmath> 25 25 #include <algorithm> 26 #include "shell_command.h"27 28 26 using namespace std; 29 30 #ifndef NO_SHELL_COMMAND31 SHELL_COMMAND_STATIC(debug, ClassList, ClassList::debugS)32 ->describe("Shows all registered classes, if param1: is a valid ClassName only values of this class are shown. param2: how much output")33 ->defaultValues(MT_NULL, 1);34 #endif35 27 36 28 /** … … 353 345 { 354 346 lenCount = 1; 355 while ( pow(10,lenCount) <= (*cl).objectList.size())347 while (std::pow((float)10, (int)lenCount) <= (*cl).objectList.size()) 356 348 ++lenCount; 357 349 for (int i=0; i < 30-(*cl).className.size() - lenCount; i++) -
trunk/src/lib/shell/Makefile.am
r7374 r7428 22 22 shell_completion.h \ 23 23 shell_completion_plugin.h 24 25 EXTRA_DIST = some_shell_commands.cc -
trunk/src/lib/shell/some_shell_commands.cc
r7426 r7428 10 10 11 11 ### File Specific: 12 main-programmer: ...12 main-programmer: Benjamin Grauer 13 13 co-programmer: ... 14 14 */ 15 15 16 /*! 17 * @file some_shell_commands.cc 18 * @brief All the ShellCommands, that should not pollute the SourceCode. 19 */ 20 16 21 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 17 22 18 #include "proto_class.h" 19 20 using namespace std; 23 #include "shell/shell_command.h" 24 using namespace OrxShell; 21 25 22 26 23 /**24 * standard constructor25 * @todo this constructor is not jet implemented - do it26 */27 ProtoClass::ProtoClass ()28 {29 this->setClassID(CL_PROTO_ID, "ProtoClass");30 27 31 /* If you make a new class, what is most probably the case when you write this file 32 don't forget to:33 1. Add the new file new_class.cc to the ./src/Makefile.am34 2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS28 #include "class_list.h" 29 SHELL_COMMAND_STATIC(debug, ClassList, ClassList::debugS) 30 ->describe("Shows all registered classes, if param1: is a valid ClassName only values of this class are shown. param2: how much output") 31 ->defaultValues(MT_NULL, 1); 35 32 36 Advanced Topics: 37 - if you want to let your object be managed via the ObjectManager make sure to read 38 the object_manager.h header comments. You will use this most certanly only if you 39 make many objects of your class, like a weapon bullet. 40 */ 41 } 33 #include "p_node.h" 34 SHELL_COMMAND(debugNode, PNode, debugNodeSC); 35 SHELL_COMMAND(setPosition, PNode, setAbsCoor); 42 36 43 37 44 /** 45 * standard deconstructor 46 */ 47 ProtoClass::~ProtoClass () 48 { 49 // delete what has to be deleted here 50 } 38 #include "material.h" 39 SHELL_COMMAND(setDiffuseTexture, Material, setDiffuseMap) 40 ->defaultValues(MT_NULL, (int)GL_TEXTURE_2D) 41 ->completionPlugin(0, CompletorFileSystem()); 42
Note: See TracChangeset
for help on using the changeset viewer.