Show
Ignore:
Timestamp:
08/12/10 16:39:08 (22 months ago)
Author:
Carsten
Message:

Liberated a lot of code from knowing the obsolete OpenGLWindowT class (and thus its related SingleOpenGLWindow global pointer)
and the also obsolete, related DirectX code.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cafu/branches/cafu_to_wx/Games/DeathMatch/Code/DeathMatch.cpp

    r113 r114  
    3636#include "MaterialSystem/Renderer.hpp" 
    3737#include "MaterialSystem/TextureMap.hpp" 
    38 #include "OpenGL/OpenGLWindow.hpp" 
    3938#include "TypeSys.hpp" 
    4039#include "SoundSystem/SoundShaderManager.hpp" 
     
    9291#ifdef _WIN32 
    9392// Under Linux (where DLLs are shared objects), these all resolve to their counterparts in the main executable. 
    94 SingleOpenGLWindowT*   SingleOpenGLWindow=NULL; 
    9593cf::GuiSys::GuiManI*   cf::GuiSys::GuiMan=NULL;     // Define the global GuiMan pointer instance -- see GuiMan.hpp for more details. 
    9694MaterialManagerI*      MaterialManager   =NULL; 
     
    106104// WARNING: When the signature of GetGame() is changed here (e.g. by adding more interface pointer parameters), 
    107105// grep all C++ source code files for "GetGame@", because the number of parameter bytes must be updated there! 
    108 DLL_EXPORT cf::GameSys::GameI* __stdcall GetGame(SingleOpenGLWindowT* SingleWin, MatSys::RendererI* Renderer, MatSys::TextureMapManagerI* TexMapMan, MaterialManagerI* MatMan, cf::GuiSys::GuiManI* GuiMan_, cf::ConsoleI* Console_, ConsoleInterpreterI* ConInterpreter_, cf::ClipSys::CollModelManI* CollModelMan_, SoundSysI* SoundSystem_, SoundShaderManagerI* SoundShaderManager_) 
     106DLL_EXPORT cf::GameSys::GameI* __stdcall GetGame(MatSys::RendererI* Renderer, MatSys::TextureMapManagerI* TexMapMan, MaterialManagerI* MatMan, cf::GuiSys::GuiManI* GuiMan_, cf::ConsoleI* Console_, ConsoleInterpreterI* ConInterpreter_, cf::ClipSys::CollModelManI* CollModelMan_, SoundSysI* SoundSystem_, SoundShaderManagerI* SoundShaderManager_) 
    109107{ 
    110108#ifdef _WIN32 
    111109    // Under Linux (where DLLs are shared objects), these all resolve to their counterparts in the main executable. 
    112     SingleOpenGLWindow       =SingleWin; 
    113110    MatSys::Renderer         =Renderer; 
    114111    MatSys::TextureMapManager=TexMapMan;