Changeset 113
- Timestamp:
- 08/11/10 19:17:21 (18 months ago)
- Location:
- cafu/branches/cafu_to_wx
- Files:
-
- 2 removed
- 17 modified
-
CaBSP/CaBSP.cpp (modified) (2 diffs)
-
CaLight/CaLight.cpp (modified) (2 diffs)
-
CaPVS/CaPVS.cpp (modified) (2 diffs)
-
CaSHL/CaSHL.cpp (modified) (2 diffs)
-
CaTools/CaSanity.cpp (modified) (2 diffs)
-
CaTools/MaterialViewer.cpp (modified) (2 diffs)
-
CaTools/ModelViewer.cpp (modified) (2 diffs)
-
CaTools/TerrainViewer.cpp (modified) (1 diff)
-
CaWE/AppCaWE.cpp (modified) (1 diff)
-
Games/DeathMatch/Code/DeathMatch.cpp (modified) (2 diffs)
-
Games/VSWM/Code/VSWM.cpp (modified) (1 diff)
-
Libs/ConsoleCommands/Console.hpp (modified) (1 diff)
-
Libs/ConsoleCommands/ConsoleInterpreter.hpp (modified) (1 diff)
-
Libs/ConsoleCommands/ConsoleInterpreterImpl.cpp (modified) (1 diff)
-
Libs/MaterialSystem/MaterialManager.cpp (deleted)
-
Libs/MaterialSystem/MaterialManager.hpp (modified) (1 diff)
-
Libs/SConscript (modified) (2 diffs)
-
Libs/SoundSystem/SoundShaderManager.cpp (deleted)
-
Libs/SoundSystem/SoundShaderManager.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cafu/branches/cafu_to_wx/CaBSP/CaBSP.cpp
r51 r113 46 46 47 47 #include "ConsoleCommands/Console.hpp" 48 #include "ConsoleCommands/ConsoleInterpreter.hpp" 48 49 #include "ConsoleCommands/ConsoleStdout.hpp" 49 50 #include "FileSys/FileManImpl.hpp" … … 74 75 static cf::ClipSys::CollModelManImplT CCM; 75 76 cf::ClipSys::CollModelManI* cf::ClipSys::CollModelMan=&CCM; 77 78 ConsoleInterpreterI* ConsoleInterpreter=NULL; 79 MaterialManagerI* MaterialManager =NULL; 76 80 77 81 -
cafu/branches/cafu_to_wx/CaLight/CaLight.cpp
r51 r113 68 68 #include "Bitmap/Bitmap.hpp" 69 69 #include "ConsoleCommands/Console.hpp" 70 #include "ConsoleCommands/ConsoleInterpreter.hpp" 70 71 #include "ConsoleCommands/ConsoleStdout.hpp" 71 72 #include "FileSys/FileManImpl.hpp" … … 95 96 static cf::ClipSys::CollModelManImplT CCM; 96 97 cf::ClipSys::CollModelManI* cf::ClipSys::CollModelMan=&CCM; 98 99 ConsoleInterpreterI* ConsoleInterpreter=NULL; 100 MaterialManagerI* MaterialManager =NULL; 97 101 98 102 -
cafu/branches/cafu_to_wx/CaPVS/CaPVS.cpp
r51 r113 53 53 #include "CaPVSWorld.hpp" 54 54 #include "ConsoleCommands/Console.hpp" 55 #include "ConsoleCommands/ConsoleInterpreter.hpp" 55 56 #include "ConsoleCommands/ConsoleStdout.hpp" 56 57 #include "FileSys/FileManImpl.hpp" … … 68 69 static cf::ClipSys::CollModelManImplT CCM; 69 70 cf::ClipSys::CollModelManI* cf::ClipSys::CollModelMan=&CCM; 71 72 ConsoleInterpreterI* ConsoleInterpreter=NULL; 73 MaterialManagerI* MaterialManager =NULL; 70 74 71 75 -
cafu/branches/cafu_to_wx/CaSHL/CaSHL.cpp
r51 r113 67 67 #include "Templates/Array.hpp" 68 68 #include "ConsoleCommands/Console.hpp" 69 #include "ConsoleCommands/ConsoleInterpreter.hpp" 69 70 #include "ConsoleCommands/ConsoleStdout.hpp" 70 71 #include "FileSys/FileManImpl.hpp" … … 97 98 static cf::ClipSys::CollModelManImplT CCM; 98 99 cf::ClipSys::CollModelManI* cf::ClipSys::CollModelMan=&CCM; 100 101 ConsoleInterpreterI* ConsoleInterpreter=NULL; 102 MaterialManagerI* MaterialManager =NULL; 99 103 100 104 -
cafu/branches/cafu_to_wx/CaTools/CaSanity.cpp
r51 r113 52 52 #include "Templates/Array.hpp" 53 53 #include "ConsoleCommands/Console.hpp" 54 #include "ConsoleCommands/ConsoleInterpreter.hpp" 54 55 #include "ConsoleCommands/ConsoleStdout.hpp" 55 56 #include "FileSys/FileManImpl.hpp" … … 77 78 static cf::ClipSys::CollModelManImplT CCM; 78 79 cf::ClipSys::CollModelManI* cf::ClipSys::CollModelMan=&CCM; 80 81 ConsoleInterpreterI* ConsoleInterpreter=NULL; 82 MaterialManagerI* MaterialManager =NULL; 79 83 80 84 -
cafu/branches/cafu_to_wx/CaTools/MaterialViewer.cpp
r51 r113 46 46 47 47 #include "ConsoleCommands/Console.hpp" 48 #include "ConsoleCommands/ConsoleInterpreter.hpp" 48 49 #include "ConsoleCommands/ConsoleStdout.hpp" 49 50 #include "FileSys/FileManImpl.hpp" … … 68 69 static cf::FileSys::FileManImplT FileManImpl; 69 70 cf::FileSys::FileManI* cf::FileSys::FileMan=&FileManImpl; 71 72 ConsoleInterpreterI* ConsoleInterpreter=NULL; 73 MaterialManagerI* MaterialManager =NULL; 70 74 71 75 -
cafu/branches/cafu_to_wx/CaTools/ModelViewer.cpp
r51 r113 27 27 28 28 #include "ConsoleCommands/Console.hpp" 29 #include "ConsoleCommands/ConsoleInterpreter.hpp" 29 30 #include "ConsoleCommands/ConsoleStdout.hpp" 30 31 #include "FileSys/FileManImpl.hpp" … … 60 61 static cf::FileSys::FileManImplT FileManImpl; 61 62 cf::FileSys::FileManI* cf::FileSys::FileMan=&FileManImpl; 63 64 ConsoleInterpreterI* ConsoleInterpreter=NULL; 65 MaterialManagerI* MaterialManager =NULL; 62 66 63 67 -
cafu/branches/cafu_to_wx/CaTools/TerrainViewer.cpp
r51 r113 70 70 cf::FileSys::FileManI* cf::FileSys::FileMan=&FileManImpl; 71 71 72 MaterialManagerI* MaterialManager=NULL; 73 72 74 73 75 #define DEG2RAD(x) ((3.1415927f / 180.0f) * (x)) -
cafu/branches/cafu_to_wx/CaWE/AppCaWE.cpp
r112 r113 72 72 cf::ClipSys::CollModelManI* cf::ClipSys::CollModelMan=&CCM; 73 73 74 ConsoleInterpreterI* ConsoleInterpreter=NULL; 75 MaterialManagerI* MaterialManager =NULL; 74 76 cf::GuiSys::GuiManI* cf::GuiSys::GuiMan=NULL; 75 77 -
cafu/branches/cafu_to_wx/Games/DeathMatch/Code/DeathMatch.cpp
r51 r113 94 94 SingleOpenGLWindowT* SingleOpenGLWindow=NULL; 95 95 cf::GuiSys::GuiManI* cf::GuiSys::GuiMan=NULL; // Define the global GuiMan pointer instance -- see GuiMan.hpp for more details. 96 MaterialManagerI* MaterialManager =NULL; 96 97 cf::ConsoleI* Console=NULL; 97 98 ConsoleInterpreterI* ConsoleInterpreter=NULL; … … 99 100 cf::ClipSys::CollModelManI* cf::ClipSys::CollModelMan=NULL; 100 101 SoundSysI* SoundSystem=NULL; 102 SoundShaderManagerI* SoundShaderManager=NULL; 101 103 #endif 102 104 -
cafu/branches/cafu_to_wx/Games/VSWM/Code/VSWM.cpp
r51 r113 251 251 SingleOpenGLWindowT* SingleOpenGLWindow=NULL; 252 252 cf::GuiSys::GuiManI* cf::GuiSys::GuiMan=NULL; // Define the global GuiMan pointer instance -- see GuiMan.hpp for more details. 253 MaterialManagerI* MaterialManager =NULL; 253 254 cf::ConsoleI* Console=NULL; 254 255 ConsoleInterpreterI* ConsoleInterpreter=NULL; -
cafu/branches/cafu_to_wx/Libs/ConsoleCommands/Console.hpp
r36 r113 68 68 69 69 70 /// Each module (the exe and each dll) needs a pointer to the application-wide global ConsoleI implementation. 71 /// For the exe, which hosts the implementation of the ConsoleI, the pointer is defined and set by linking in e.g. the ConsoleStdout.cpp file. 72 /// Each dll that uses the console has to provide a definition by itself, and initialize it to point to the exe's console instance. 70 /// A global pointer to an implementation of the ConsoleI interface. 71 /// 72 /// Each module (exe or dll) that uses this pointer must somewhere provide exactly one definition for it (none is provided by the Console library). 73 /// That is, typically the main.cpp or similar file of each exe and dll must contain a line like 74 /// cf::ConsoleI* Console=NULL; 75 /// or else the module will not link successfully due to an undefined symbol. 76 /// 77 /// Exe files will then want to reset this pointer to an instance of e.g. a ConsoleStdoutT during their initialization 78 /// e.g. by code like: Console=new cf::ConsoleStdoutT; 79 /// 80 /// Dlls typically get one of their init functions called immediately after they have been loaded. 81 /// By doing so, the exe passes a pointer to its above instance to the dll, which in turn copies it to its Console variable. 73 82 extern cf::ConsoleI* Console; 74 83 -
cafu/branches/cafu_to_wx/Libs/ConsoleCommands/ConsoleInterpreter.hpp
r36 r113 105 105 106 106 107 /// Each module (the exe and each dll) needs a pointer to the application-wide global ConsoleInterpreterI implementation. 108 /// For the exe, which hosts the implementation of the ConsoleInterpreter, the pointer is defined and set by linking in the ConsoleInterpreterImpl.cpp file. 109 /// Each dll that uses convars has to provide a definition by itself, and initialize it to point to the exe's ConsoleInterpreter instance. 107 /// A global pointer to an implementation of the ConsoleInterpreterI interface. 108 /// 109 /// Each module (exe or dll) that uses this pointer must somewhere provide exactly one definition for it (none is provided by the ConsoleInterpreter library). 110 /// That is, typically the main.cpp or similar file of each exe and dll must contain a line like 111 /// ConsoleInterpreterI* ConsoleInterpreter=NULL; 112 /// or else the module will not link successfully due to an undefined symbol. 113 /// 114 /// Exe files will then want to reset this pointer to an instance of a ConsoleInterpreterImplT during their initialization 115 /// e.g. by code like: ConsoleInterpreter=new ConsoleInterpreterImplT; 116 /// Note that the ConsoleInterpreterImplT ctor may require that other interfaces (e.g. the Console) have been inited first. 117 /// 118 /// Dlls typically get one of their init functions called immediately after they have been loaded. 119 /// By doing so, the exe passes a pointer to its above instance to the dll, which in turn copies it to its ConsoleInterpreter variable. 110 120 extern ConsoleInterpreterI* ConsoleInterpreter; 111 121 -
cafu/branches/cafu_to_wx/Libs/ConsoleCommands/ConsoleInterpreterImpl.cpp
r51 r113 42 42 #include <sstream> 43 43 #include <cassert> 44 45 46 ConsoleInterpreterI* ConsoleInterpreter=NULL;47 44 48 45 -
cafu/branches/cafu_to_wx/Libs/MaterialSystem/MaterialManager.hpp
r36 r113 80 80 81 81 82 /// A global pointer to the material manager that currently defaults to &MaterialManagerI::Get(). 83 /// This pointer should be used by all code (e.g. models) that potentially is included in a DLL and should share the common Material Manager 84 /// of another module (e.g. the main executable). As the DLL will during its initialization reset this pointer to the one provided by the 85 /// executable, this goal is thus automatically achieved. 82 /// A global pointer to an implementation of the MaterialManagerI interface. 83 /// 84 /// Each module (exe or dll) that uses this pointer must somewhere provide exactly one definition for it (none is provided by the MatSys). 85 /// That is, typically the main.cpp or similar file of each exe and dll must contain a line like 86 /// MaterialManagerI* MaterialManager=NULL; 87 /// or else the module will not link successfully due to an undefined symbol. 88 /// 89 /// Exe files will then want to reset this pointer to an instance of a MaterialManagerImplT during their initialization 90 /// e.g. by code like: MaterialManager=new MaterialManagerImplT; 91 /// Note that the MaterialManagerImplT ctor may require that other interfaces (e.g. the Console) have been inited first. 92 /// 93 /// Dlls typically get one of their init functions called immediately after they have been loaded. 94 /// By doing so, the exe passes a pointer to its above instance to the dll, which in turn copies it to its MaterialManager variable. 86 95 extern MaterialManagerI* MaterialManager; 87 96 -
cafu/branches/cafu_to_wx/Libs/SConscript
r80 r113 59 59 env.StaticLibrary( 60 60 target="MatSys", 61 source=Split("""MaterialSystem/Expression.cpp MaterialSystem/MapComposition.cpp MaterialSystem/Material.cpp MaterialSystem/MaterialManager.cpp61 source=Split("""MaterialSystem/Expression.cpp MaterialSystem/MapComposition.cpp MaterialSystem/Material.cpp 62 62 MaterialSystem/MaterialManagerImpl.cpp MaterialSystem/Renderer.cpp MaterialSystem/TextureMap.cpp""")) 63 63 … … 66 66 env.StaticLibrary( 67 67 target="SoundSys", 68 source=Split("""SoundSystem/SoundShaderManager .cpp SoundSystem/SoundShaderManagerImpl.cpp SoundSystem/SoundShader.cpp"""))68 source=Split("""SoundSystem/SoundShaderManagerImpl.cpp SoundSystem/SoundShader.cpp""")) 69 69 70 70 -
cafu/branches/cafu_to_wx/Libs/SoundSystem/SoundShaderManager.hpp
r36 r113 70 70 }; 71 71 72 /// A global pointer to the sound shader manager. 73 /// This pointer should be used by all code that potentially is included in a DLL and should share the common sound shader manager 74 /// of another module (e.g. the main executable). As the DLL will during its initialization reset this pointer to the one provided by the 75 /// executable, this goal is thus automatically achieved. 72 73 /// A global pointer to an implementation of the SoundShaderManagerI interface. 74 /// 75 /// Each module (exe or dll) that uses this pointer must somewhere provide exactly one definition for it (none is provided by the SoundSys). 76 /// That is, typically the main.cpp or similar file of each exe and dll must contain a line like 77 /// SoundShaderManagerI* SoundShaderManager=NULL; 78 /// or else the module will not link successfully due to an undefined symbol. 79 /// 80 /// Exe files will then want to reset this pointer to an instance of a SoundShaderManagerImplT during their initialization 81 /// e.g. by code like: SoundShaderManager=new SoundShaderManagerImplT; 82 /// Note that the SoundShaderManagerImplT ctor may require that other interfaces (e.g. the Console) have been inited first. 83 /// 84 /// Dlls typically get one of their init functions called immediately after they have been loaded. 85 /// By doing so, the exe passes a pointer to its above instance to the dll, which in turn copies it to its SoundShaderManager variable. 76 86 extern SoundShaderManagerI* SoundShaderManager; 77 87
