diff --git a/IndieLib/tutorials/advanced/01_IND_Surface_Grids/CIndieLib_vc2008.h b/IndieLib/tutorials/advanced/01_IND_Surface_Grids/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/advanced/01_IND_Surface_Grids/CIndieLib_vc2008.h rename to IndieLib/tutorials/advanced/01_IND_Surface_Grids/CIndieLib.h diff --git a/IndieLib/tutorials/advanced/01_IND_Surface_Grids/CIndieLib_vc2008.cpp b/IndieLib/tutorials/advanced/01_IND_Surface_Grids/CIndieLib_vc2008.cpp deleted file mode 100644 index ca77de38..00000000 --- a/IndieLib/tutorials/advanced/01_IND_Surface_Grids/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - - - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - _animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - - IND_WindowProperties props ("IndieLib", 800, 600, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - _animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - - IndieLib::end(); - - DISPOSE(_pinstance); -} diff --git a/IndieLib/tutorials/advanced/02_Blitting_2d_Directly/CIndieLib_vc2008.h b/IndieLib/tutorials/advanced/02_Blitting_2d_Directly/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/advanced/02_Blitting_2d_Directly/CIndieLib_vc2008.h rename to IndieLib/tutorials/advanced/02_Blitting_2d_Directly/CIndieLib.h diff --git a/IndieLib/tutorials/advanced/02_Blitting_2d_Directly/CIndieLib_vc2008.cpp b/IndieLib/tutorials/advanced/02_Blitting_2d_Directly/CIndieLib_vc2008.cpp deleted file mode 100644 index ca77de38..00000000 --- a/IndieLib/tutorials/advanced/02_Blitting_2d_Directly/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - - - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - _animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - - IND_WindowProperties props ("IndieLib", 800, 600, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - _animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - - IndieLib::end(); - - DISPOSE(_pinstance); -} diff --git a/IndieLib/tutorials/advanced/04_Several_ViewPorts/CIndieLib_vc2008.h b/IndieLib/tutorials/advanced/04_Several_ViewPorts/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/advanced/04_Several_ViewPorts/CIndieLib_vc2008.h rename to IndieLib/tutorials/advanced/04_Several_ViewPorts/CIndieLib.h diff --git a/IndieLib/tutorials/advanced/04_Several_ViewPorts/CIndieLib_vc2008.cpp b/IndieLib/tutorials/advanced/04_Several_ViewPorts/CIndieLib_vc2008.cpp deleted file mode 100644 index ca77de38..00000000 --- a/IndieLib/tutorials/advanced/04_Several_ViewPorts/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - - - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - _animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - - IND_WindowProperties props ("IndieLib", 800, 600, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - _animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - - IndieLib::end(); - - DISPOSE(_pinstance); -} diff --git a/IndieLib/tutorials/advanced/05_IND_TmxMap/CIndieLib_vc2008.h b/IndieLib/tutorials/advanced/05_IND_TmxMap/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/advanced/05_IND_TmxMap/CIndieLib_vc2008.h rename to IndieLib/tutorials/advanced/05_IND_TmxMap/CIndieLib.h diff --git a/IndieLib/tutorials/advanced/05_IND_TmxMap/CIndieLib_vc2008.cpp b/IndieLib/tutorials/advanced/05_IND_TmxMap/CIndieLib_vc2008.cpp deleted file mode 100644 index d125d377..00000000 --- a/IndieLib/tutorials/advanced/05_IND_TmxMap/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,111 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - - - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - _animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - _tmxMapManager = new IND_TmxMapManager; - - IND_WindowProperties props ("IndieLib", 1920, 1080, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - if (!_tmxMapManager ->init()) return 0; - - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - _animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - _tmxMapManager ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - DISPOSE(_tmxMapManager); - - IndieLib::end(); - - DISPOSE(_pinstance); -} diff --git a/IndieLib/tutorials/advanced/06_Spriter/CIndieLib_vc2008.h b/IndieLib/tutorials/advanced/06_Spriter/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/advanced/06_Spriter/CIndieLib_vc2008.h rename to IndieLib/tutorials/advanced/06_Spriter/CIndieLib.h diff --git a/IndieLib/tutorials/advanced/06_Spriter/CIndieLib_vc2008.cpp b/IndieLib/tutorials/advanced/06_Spriter/CIndieLib_vc2008.cpp deleted file mode 100644 index 5b22707d..00000000 --- a/IndieLib/tutorials/advanced/06_Spriter/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,141 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - -/* -================== -Sets working path to the directory of exe file (Windows) -================== -*/ -/*MIGUEL: DISABLED UNTIL IT IS REALLY NECESSARY. IT IS STANDARD FOR CURRENT DIRECTORY -TO BE THE APP'S EXECUTABLE LOCATION (FROM WHERE IT WAS LAUNCHED) WE DON'T NEEED -ANYTHING ELSE -void CIndieLib::resetCurrentDirectory_W(void) { - TCHAR app_path[MAX_PATH] = _T(""); - DWORD size_in_tchars = sizeof(app_path) / sizeof(TCHAR); - // get full app path with the exe filename - GetModuleFileName(0, app_path, size_in_tchars - 1); - // making app_path to end on dir char ('\\') - // _tcsrchr - search for char from the string's end - TCHAR *app_dir = _tcsrchr(app_path, _T('\\')); - if (app_dir) { - app_dir += 1; - if (app_dir) { - *app_dir = 0; - SetCurrentDirectory(app_path); - return; - } - } - // TODO. inform somehow that func is failed. -} -*/ - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - //_animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - //_tmxMapManager = new IND_TmxMapManager; - _spriterManager = new IND_SpriterManager; - - IND_WindowProperties props ("IndieLib", 800, 600, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - //if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - //if (!_tmxMapManager ->init()) return 0; - if (!_spriterManager ->init()) return 0; - - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - //_animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - //_tmxMapManager ->end(); - _spriterManager ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - //DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - //DISPOSE(_tmxMapManager); - DISPOSE(_spriterManager); - - IndieLib::end(); - - DISPOSE(_pinstance); -} diff --git a/IndieLib/tutorials/basic/01_Installing/CIndieLib_vc2008.h b/IndieLib/tutorials/basic/01_Installing/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/basic/01_Installing/CIndieLib_vc2008.h rename to IndieLib/tutorials/basic/01_Installing/CIndieLib.h diff --git a/IndieLib/tutorials/basic/01_Installing/CIndieLib_vc2008.cpp b/IndieLib/tutorials/basic/01_Installing/CIndieLib_vc2008.cpp deleted file mode 100644 index ca77de38..00000000 --- a/IndieLib/tutorials/basic/01_Installing/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - - - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - _animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - - IND_WindowProperties props ("IndieLib", 800, 600, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - _animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - - IndieLib::end(); - - DISPOSE(_pinstance); -} diff --git a/IndieLib/tutorials/basic/02_IND_Surface/CIndieLib_vc2008.h b/IndieLib/tutorials/basic/02_IND_Surface/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/basic/02_IND_Surface/CIndieLib_vc2008.h rename to IndieLib/tutorials/basic/02_IND_Surface/CIndieLib.h diff --git a/IndieLib/tutorials/basic/02_IND_Surface/CIndieLib_vc2008.cpp b/IndieLib/tutorials/basic/02_IND_Surface/CIndieLib_vc2008.cpp deleted file mode 100644 index ca77de38..00000000 --- a/IndieLib/tutorials/basic/02_IND_Surface/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - - - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - _animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - - IND_WindowProperties props ("IndieLib", 800, 600, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - _animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - - IndieLib::end(); - - DISPOSE(_pinstance); -} diff --git a/IndieLib/tutorials/basic/03_IND_Image/CIndieLib_vc2008.h b/IndieLib/tutorials/basic/03_IND_Image/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/basic/03_IND_Image/CIndieLib_vc2008.h rename to IndieLib/tutorials/basic/03_IND_Image/CIndieLib.h diff --git a/IndieLib/tutorials/basic/03_IND_Image/CIndieLib_vc2008.cpp b/IndieLib/tutorials/basic/03_IND_Image/CIndieLib_vc2008.cpp deleted file mode 100644 index ca77de38..00000000 --- a/IndieLib/tutorials/basic/03_IND_Image/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - - - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - _animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - - IND_WindowProperties props ("IndieLib", 800, 600, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - _animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - - IndieLib::end(); - - DISPOSE(_pinstance); -} diff --git a/IndieLib/tutorials/basic/04_IND_Animation/CIndieLib_vc2008.h b/IndieLib/tutorials/basic/04_IND_Animation/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/basic/04_IND_Animation/CIndieLib_vc2008.h rename to IndieLib/tutorials/basic/04_IND_Animation/CIndieLib.h diff --git a/IndieLib/tutorials/basic/04_IND_Animation/CIndieLib_vc2008.cpp b/IndieLib/tutorials/basic/04_IND_Animation/CIndieLib_vc2008.cpp deleted file mode 100644 index ca77de38..00000000 --- a/IndieLib/tutorials/basic/04_IND_Animation/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - - - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - _animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - - IND_WindowProperties props ("IndieLib", 800, 600, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - _animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - - IndieLib::end(); - - DISPOSE(_pinstance); -} diff --git a/IndieLib/tutorials/basic/05_IND_Font/CIndieLib_vc2008.h b/IndieLib/tutorials/basic/05_IND_Font/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/basic/05_IND_Font/CIndieLib_vc2008.h rename to IndieLib/tutorials/basic/05_IND_Font/CIndieLib.h diff --git a/IndieLib/tutorials/basic/05_IND_Font/CIndieLib_vc2008.cpp b/IndieLib/tutorials/basic/05_IND_Font/CIndieLib_vc2008.cpp deleted file mode 100644 index ca77de38..00000000 --- a/IndieLib/tutorials/basic/05_IND_Font/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - - - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - _animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - - IND_WindowProperties props ("IndieLib", 800, 600, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - _animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - - IndieLib::end(); - - DISPOSE(_pinstance); -} diff --git a/IndieLib/tutorials/basic/06_Primitives/CIndieLib_vc2008.h b/IndieLib/tutorials/basic/06_Primitives/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/basic/06_Primitives/CIndieLib_vc2008.h rename to IndieLib/tutorials/basic/06_Primitives/CIndieLib.h diff --git a/IndieLib/tutorials/basic/06_Primitives/CIndieLib_vc2008.cpp b/IndieLib/tutorials/basic/06_Primitives/CIndieLib_vc2008.cpp deleted file mode 100644 index ca77de38..00000000 --- a/IndieLib/tutorials/basic/06_Primitives/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - - - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - _animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - - IND_WindowProperties props ("IndieLib", 800, 600, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - _animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - - IndieLib::end(); - - DISPOSE(_pinstance); -} diff --git a/IndieLib/tutorials/basic/07_IND_Input/CIndieLib_vc2008.h b/IndieLib/tutorials/basic/07_IND_Input/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/basic/07_IND_Input/CIndieLib_vc2008.h rename to IndieLib/tutorials/basic/07_IND_Input/CIndieLib.h diff --git a/IndieLib/tutorials/basic/07_IND_Input/CIndieLib_vc2008.cpp b/IndieLib/tutorials/basic/07_IND_Input/CIndieLib_vc2008.cpp deleted file mode 100644 index ca77de38..00000000 --- a/IndieLib/tutorials/basic/07_IND_Input/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - - - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - _animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - - IND_WindowProperties props ("IndieLib", 800, 600, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - _animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - - IndieLib::end(); - - DISPOSE(_pinstance); -} diff --git a/IndieLib/tutorials/basic/08_Collisions/CIndieLib_vc2008.h b/IndieLib/tutorials/basic/08_Collisions/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/basic/08_Collisions/CIndieLib_vc2008.h rename to IndieLib/tutorials/basic/08_Collisions/CIndieLib.h diff --git a/IndieLib/tutorials/basic/08_Collisions/CIndieLib_vc2008.cpp b/IndieLib/tutorials/basic/08_Collisions/CIndieLib_vc2008.cpp deleted file mode 100644 index ca77de38..00000000 --- a/IndieLib/tutorials/basic/08_Collisions/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - - - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - _animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - - IND_WindowProperties props ("IndieLib", 800, 600, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - _animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - - IndieLib::end(); - - DISPOSE(_pinstance); -} diff --git a/IndieLib/tutorials/basic/11_Animated_Tile_Scrolling/CIndieLib_vc2008.h b/IndieLib/tutorials/basic/11_Animated_Tile_Scrolling/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/basic/11_Animated_Tile_Scrolling/CIndieLib_vc2008.h rename to IndieLib/tutorials/basic/11_Animated_Tile_Scrolling/CIndieLib.h diff --git a/IndieLib/tutorials/basic/11_Animated_Tile_Scrolling/CIndieLib_vc2008.cpp b/IndieLib/tutorials/basic/11_Animated_Tile_Scrolling/CIndieLib_vc2008.cpp deleted file mode 100644 index ca77de38..00000000 --- a/IndieLib/tutorials/basic/11_Animated_Tile_Scrolling/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - - - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - _animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - - IND_WindowProperties props ("IndieLib", 800, 600, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - _animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - - IndieLib::end(); - - DISPOSE(_pinstance); -} diff --git a/IndieLib/tutorials/basic/13_2d_Camera/CIndieLib_vc2008.h b/IndieLib/tutorials/basic/13_2d_Camera/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/basic/13_2d_Camera/CIndieLib_vc2008.h rename to IndieLib/tutorials/basic/13_2d_Camera/CIndieLib.h diff --git a/IndieLib/tutorials/basic/13_2d_Camera/CIndieLib_vc2008.cpp b/IndieLib/tutorials/basic/13_2d_Camera/CIndieLib_vc2008.cpp deleted file mode 100644 index ca77de38..00000000 --- a/IndieLib/tutorials/basic/13_2d_Camera/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - - - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - _animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - - IND_WindowProperties props ("IndieLib", 800, 600, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - _animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - - IndieLib::end(); - - DISPOSE(_pinstance); -} diff --git a/IndieLib/tutorials/basic/15_Parallax_Scrolling/CIndieLib_vc2008.h b/IndieLib/tutorials/basic/15_Parallax_Scrolling/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/basic/15_Parallax_Scrolling/CIndieLib_vc2008.h rename to IndieLib/tutorials/basic/15_Parallax_Scrolling/CIndieLib.h diff --git a/IndieLib/tutorials/basic/15_Parallax_Scrolling/CIndieLib_vc2008.cpp b/IndieLib/tutorials/basic/15_Parallax_Scrolling/CIndieLib_vc2008.cpp deleted file mode 100644 index ca77de38..00000000 --- a/IndieLib/tutorials/basic/15_Parallax_Scrolling/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - - - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - _animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - - IND_WindowProperties props ("IndieLib", 800, 600, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - _animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - - IndieLib::end(); - - DISPOSE(_pinstance); -} diff --git a/IndieLib/tutorials/basic/16_IND_Timer/CIndieLib_vc2008.h b/IndieLib/tutorials/basic/16_IND_Timer/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/basic/16_IND_Timer/CIndieLib_vc2008.h rename to IndieLib/tutorials/basic/16_IND_Timer/CIndieLib.h diff --git a/IndieLib/tutorials/basic/16_IND_Timer/CIndieLib_vc2008.cpp b/IndieLib/tutorials/basic/16_IND_Timer/CIndieLib_vc2008.cpp deleted file mode 100644 index ca77de38..00000000 --- a/IndieLib/tutorials/basic/16_IND_Timer/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - - - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - _animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - - IND_WindowProperties props ("IndieLib", 800, 600, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - _animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - - IndieLib::end(); - - DISPOSE(_pinstance); -} diff --git a/IndieLib/tutorials/benchmark/01_Alien_BenchMark/CIndieLib_vc2008.h b/IndieLib/tutorials/benchmark/01_Alien_BenchMark/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/benchmark/01_Alien_BenchMark/CIndieLib_vc2008.h rename to IndieLib/tutorials/benchmark/01_Alien_BenchMark/CIndieLib.h diff --git a/IndieLib/tutorials/benchmark/01_Alien_BenchMark/CIndieLib_vc2008.cpp b/IndieLib/tutorials/benchmark/01_Alien_BenchMark/CIndieLib_vc2008.cpp deleted file mode 100644 index ca77de38..00000000 --- a/IndieLib/tutorials/benchmark/01_Alien_BenchMark/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - - - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - _animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - - IND_WindowProperties props ("IndieLib", 800, 600, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - _animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - - IndieLib::end(); - - DISPOSE(_pinstance); -} diff --git a/IndieLib/tutorials/benchmark/02_Rabbits_BenchMark/CIndieLib_vc2008.h b/IndieLib/tutorials/benchmark/02_Rabbits_BenchMark/CIndieLib.h similarity index 100% rename from IndieLib/tutorials/benchmark/02_Rabbits_BenchMark/CIndieLib_vc2008.h rename to IndieLib/tutorials/benchmark/02_Rabbits_BenchMark/CIndieLib.h diff --git a/IndieLib/tutorials/benchmark/02_Rabbits_BenchMark/CIndieLib_vc2008.cpp b/IndieLib/tutorials/benchmark/02_Rabbits_BenchMark/CIndieLib_vc2008.cpp deleted file mode 100644 index ca77de38..00000000 --- a/IndieLib/tutorials/benchmark/02_Rabbits_BenchMark/CIndieLib_vc2008.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/***************************************************************************************** - * Desc: IndieLib singleton initialization class - *****************************************************************************************/ - -#include "CIndieLib_vc2008.h" - -//#ifdef PLATFORM_WIN32 -//#include "TCHAR.h" -//#endif - -/* -================== -Init singleton -================== -*/ -CIndieLib *CIndieLib::_pinstance = 0;// initialize pointer -CIndieLib *CIndieLib::instance() { - if (_pinstance == 0) { // is it the first call? - _pinstance = new CIndieLib; // create sole instance - } - return _pinstance; // address of sole instance -} - - - -/* -================== -Init IndieLib -================== -*/ -bool CIndieLib::init() { - //resetCurrentDirectory_W(); - - // IndieLib Initialization, a debug.log file will be created. - IndieLib::init(IND_DEBUG_MODE); - - _input = new IND_Input; - _render = new IND_Render; - //_lightManager = new IND_LightManager; - _imageManager = new IND_ImageManager; - _surfaceManager = new IND_SurfaceManager; - //_meshManager = new IND_3dMeshManager; - _animationManager = new IND_AnimationManager; - _fontManager = new IND_FontManager; - _entity2dManager = new IND_Entity2dManager; - //_entity3dManager = new IND_Entity3dManager; - _math = new IND_Math; - - IND_WindowProperties props ("IndieLib", 800, 600, 32, 0, 0, 1); - - - _window = _render ->initRenderAndWindow(props); - if(!_window) - return 0; - - //if (!_lightManager ->init (_render)) return 0; - if (!_imageManager ->init()) return 0; - if (!_surfaceManager ->init(_imageManager, _render)) return 0; - if (!_animationManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_fontManager ->init(_imageManager, _surfaceManager)) return 0; - if (!_entity2dManager ->init(_render)) return 0; - //if (!_entity3dManager ->init (_render)) return 0; - //if (!_meshManager ->init (_render)) return 0; - if (!_input ->init(_render)) return 0; - if (!_math ->init()) return 0; - - return 1; -} - - -/* -================== -Free Indielib managers -================== -*/ -void CIndieLib::end() { - // ----- Freeing objects ----- - - _math ->end(); - //_meshManager ->end(); - _input ->end(); - _entity2dManager ->end(); - //_entity3dManager ->end(); - _fontManager ->end(); - _animationManager ->end(); - _surfaceManager ->end(); - _imageManager ->end(); - //_lightManager ->end(); - _render ->end(); - - DISPOSE(_math); - //DISPOSE(_meshManager); - DISPOSE(_input); - DISPOSE(_entity2dManager); - //DISPOSE(_entity3dManager); - DISPOSE(_fontManager); - DISPOSE(_animationManager); - DISPOSE(_surfaceManager); - DISPOSE(_imageManager); - //DISPOSE(_lightManager); - DISPOSE(_render); - - IndieLib::end(); - - DISPOSE(_pinstance); -}