Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Changeset 804

Committed by IonutCava on Thu 01 Dec, 2016 17:20:59 +0000

Commit Message:

[IonutCava]
- Singleton elimination update Part I: get it to compile
— The following classes are no longer Singletons: GFXDevice, GL_API, DX_API, SFXWrapper, FmodWrapper, SDLWrapper, ALWrapper, PXDevice, InputInterface, RenderPassManager, SceneManager and ResourceManager;
— Refactor system to a Context / Component based implementation (Pass relevant context to objects: e.g. GFXDevice object to Textures, GUI to GUIElements, etc)
— Make devices and managers components of the kernel
— Allow multiple Resource caches to co-exist. This may prove useful for later when a more fragmented memory model is need (per frame / per scene / global caches / etc)

  • next steps: part II – cleanup/refactor new code, part III – optimise code, part IV – remove remaining Singletons (e.g. Application, ParamHandler, FrameListenerManager, Recast, PostFX and DebugInterface)

Changes

Added /trunk/Source Code/Core/Headers/KernelComponent.h

Added /trunk/Source Code/Core/Headers/PlatformContext.h

Added /trunk/Source Code/Core/PlatformContext.cpp

Added /trunk/Source Code/Rendering/Renderer.cpp

Modified /trunk/Source Code/AI/PathFinding/NavMeshes/Headers/NavMesh.h Diff

Modified /trunk/Source Code/AI/PathFinding/NavMeshes/Headers/NavMeshDebugDraw.h Diff

Modified /trunk/Source Code/AI/PathFinding/NavMeshes/NavMesh.cpp Diff

Modified /trunk/Source Code/AI/PathFinding/NavMeshes/NavMeshDebugDraw.cpp Diff

Modified /trunk/Source Code/Core/Headers/Kernel.h Diff

Modified /trunk/Source Code/Core/Headers/WindowManager.h Diff

Modified /trunk/Source Code/Core/Kernel.cpp Diff

Modified /trunk/Source Code/Core/Resources/ConcreteLoaders/AudioDescriptorLoaderImpl.cpp Diff

Modified /trunk/Source Code/Core/Resources/ConcreteLoaders/Box3DLoaderImpl.cpp Diff

Modified /trunk/Source Code/Core/Resources/ConcreteLoaders/ImpostorLoaderImpl.cpp Diff

Modified /trunk/Source Code/Core/Resources/ConcreteLoaders/LightLoaderImpl.cpp Diff

Modified /trunk/Source Code/Core/Resources/ConcreteLoaders/MaterialLoaderImpl.cpp Diff

Modified /trunk/Source Code/Core/Resources/ConcreteLoaders/MeshLoaderImpl.cpp Diff

Modified /trunk/Source Code/Core/Resources/ConcreteLoaders/ParticleEmitterLoaderImpl.cpp Diff

Modified /trunk/Source Code/Core/Resources/ConcreteLoaders/Quad3DLoaderImpl.cpp Diff

Modified /trunk/Source Code/Core/Resources/ConcreteLoaders/ShaderProgramLoaderImpl.cpp Diff

Modified /trunk/Source Code/Core/Resources/ConcreteLoaders/SkyLoaderImpl.cpp Diff

Modified /trunk/Source Code/Core/Resources/ConcreteLoaders/Sphere3DLoaderImpl.cpp Diff

Modified /trunk/Source Code/Core/Resources/ConcreteLoaders/SubMeshLoaderImpl.cpp Diff

Modified /trunk/Source Code/Core/Resources/ConcreteLoaders/TerrainLoaderImpl.cpp Diff

Modified /trunk/Source Code/Core/Resources/ConcreteLoaders/Text3DLoaderImpl.cpp Diff

Modified /trunk/Source Code/Core/Resources/ConcreteLoaders/TextureLoaderImpl.cpp Diff

Modified /trunk/Source Code/Core/Resources/ConcreteLoaders/TriggerLoaderImpl.cpp Diff

Modified /trunk/Source Code/Core/Resources/ConcreteLoaders/WaterPlaneLoaderImpl.cpp Diff

Modified /trunk/Source Code/Core/Resources/Headers/ResourceCache.h Diff

Modified /trunk/Source Code/Core/Resources/Headers/ResourceLoader.h Diff

Modified /trunk/Source Code/Core/Resources/ResourceCache.cpp Diff

Modified /trunk/Source Code/Core/WindowManager.cpp Diff

Modified /trunk/Source Code/Dynamics/Entities/Headers/Impostor.h Diff

Modified /trunk/Source Code/Dynamics/Entities/Impostor.cpp Diff

Modified /trunk/Source Code/Dynamics/Entities/Particles/Headers/ParticleEmitter.h Diff

Modified /trunk/Source Code/Dynamics/Entities/Particles/ParticleEmitter.cpp Diff

Modified /trunk/Source Code/Dynamics/Entities/Triggers/Headers/Trigger.h Diff

Modified /trunk/Source Code/Dynamics/Entities/Triggers/Trigger.cpp Diff

Modified /trunk/Source Code/Dynamics/Entities/Units/Character.cpp Diff

Modified /trunk/Source Code/Environment/Sky/Headers/Sky.h Diff

Modified /trunk/Source Code/Environment/Sky/Sky.cpp Diff

Modified /trunk/Source Code/Environment/Terrain/Headers/Terrain.h Diff

Modified /trunk/Source Code/Environment/Terrain/Headers/TerrainChunk.h Diff

Modified /trunk/Source Code/Environment/Terrain/Quadtree/Headers/Quadtree.h Diff

Modified /trunk/Source Code/Environment/Terrain/Quadtree/Headers/QuadtreeNode.h Diff

Modified /trunk/Source Code/Environment/Terrain/Quadtree/Quadtree.cpp Diff

Modified /trunk/Source Code/Environment/Terrain/Quadtree/QuadtreeNode.cpp Diff

Modified /trunk/Source Code/Environment/Terrain/Terrain.cpp Diff

Modified /trunk/Source Code/Environment/Terrain/TerrainChunk.cpp Diff

Modified /trunk/Source Code/Environment/Terrain/TerrainLoader.cpp Diff

Modified /trunk/Source Code/Environment/Vegetation/Headers/Vegetation.h Diff

Modified /trunk/Source Code/Environment/Vegetation/Vegetation.cpp Diff

Modified /trunk/Source Code/Environment/Water/Headers/Water.h Diff

Modified /trunk/Source Code/Environment/Water/Water.cpp Diff

Modified /trunk/Source Code/GUI/GUI.cpp Diff

Modified /trunk/Source Code/GUI/GUIButton.cpp Diff

Modified /trunk/Source Code/GUI/GUIConsole.cpp Diff

Modified /trunk/Source Code/GUI/GUIConsoleCommandParser.cpp Diff

Modified /trunk/Source Code/GUI/GUIEditor/GUIEditor.cpp Diff

Modified /trunk/Source Code/GUI/GUIEditor/Headers/GUIEditor.h Diff

Modified /trunk/Source Code/GUI/GUIInterface.cpp Diff

Modified /trunk/Source Code/GUI/GUISplash.cpp Diff

Modified /trunk/Source Code/GUI/Headers/GUI.h Diff

Modified /trunk/Source Code/GUI/Headers/GUIButton.h Diff

Modified /trunk/Source Code/GUI/Headers/GUIConsole.h Diff

Modified /trunk/Source Code/GUI/Headers/GUIConsoleCommandParser.h Diff

Modified /trunk/Source Code/GUI/Headers/GUISplash.h Diff

Modified /trunk/Source Code/Geometry/Animations/AnimationEvaluator.cpp Diff

Modified /trunk/Source Code/Geometry/Animations/AnimationUtils.cpp Diff

Modified /trunk/Source Code/Geometry/Animations/Headers/AnimationEvaluator.h Diff

Modified /trunk/Source Code/Geometry/Animations/Headers/AnimationUtils.h Diff

Modified /trunk/Source Code/Geometry/Animations/Headers/SceneAnimator.h Diff

Modified /trunk/Source Code/Geometry/Animations/SceneAnimator.cpp Diff

Modified /trunk/Source Code/Geometry/Animations/SceneAnimatorFileIO.cpp Diff

Modified /trunk/Source Code/Geometry/Importer/DVDConverter.cpp Diff

Modified /trunk/Source Code/Geometry/Importer/Headers/DVDConverter.h Diff

Modified /trunk/Source Code/Geometry/Importer/Headers/MeshImporter.h Diff

Modified /trunk/Source Code/Geometry/Importer/MeshImporter.cpp Diff

Modified /trunk/Source Code/Geometry/Material/Headers/Material.h Diff

Modified /trunk/Source Code/Geometry/Material/Headers/ShaderComputeQueue.h Diff

Modified /trunk/Source Code/Geometry/Material/Material.cpp Diff

Modified /trunk/Source Code/Geometry/Material/ShaderComputeQueue.cpp Diff

Modified /trunk/Source Code/Geometry/Shapes/Headers/Mesh.h Diff

Modified /trunk/Source Code/Geometry/Shapes/Headers/Object3D.h Diff

Modified /trunk/Source Code/Geometry/Shapes/Headers/Predefined/Box3D.h Diff

Modified /trunk/Source Code/Geometry/Shapes/Headers/Predefined/Quad3D.h Diff

Modified /trunk/Source Code/Geometry/Shapes/Headers/Predefined/Sphere3D.h Diff

Modified /trunk/Source Code/Geometry/Shapes/Headers/Predefined/Text3D.h Diff

Modified /trunk/Source Code/Geometry/Shapes/Headers/SkinnedSubMesh.h Diff

Modified /trunk/Source Code/Geometry/Shapes/Headers/SubMesh.h Diff

Modified /trunk/Source Code/Geometry/Shapes/Mesh.cpp Diff

Modified /trunk/Source Code/Geometry/Shapes/Object3D.cpp Diff

Modified /trunk/Source Code/Geometry/Shapes/SkinnedSubMesh.cpp Diff

Modified /trunk/Source Code/Geometry/Shapes/SubMesh.cpp Diff

Modified /trunk/Source Code/Graphs/Components/Headers/PhysicsComponent.h Diff

Modified /trunk/Source Code/Graphs/Components/Headers/RenderingComponent.h Diff

Modified /trunk/Source Code/Graphs/Components/PhysicsComponent.cpp Diff

Modified /trunk/Source Code/Graphs/Components/RenderingComponent.cpp Diff

Modified /trunk/Source Code/Graphs/Headers/SceneGraphNode.h Diff

Modified /trunk/Source Code/Graphs/Headers/SceneNode.h Diff

Modified /trunk/Source Code/Graphs/SceneGraph.cpp Diff

Modified /trunk/Source Code/Graphs/SceneGraphNode.cpp Diff

Modified /trunk/Source Code/Graphs/SceneNode.cpp Diff

Modified /trunk/Source Code/Managers/FrameListenerManager.cpp Diff

Modified /trunk/Source Code/Managers/Headers/FrameListenerManager.h Diff

Modified /trunk/Source Code/Managers/Headers/RenderPassManager.h Diff

Modified /trunk/Source Code/Managers/Headers/SceneManager.h Diff

Modified /trunk/Source Code/Managers/RenderPassManager.cpp Diff

Modified /trunk/Source Code/Managers/SceneManager.cpp Diff

Modified /trunk/Source Code/Physics/Headers/PXDevice.h Diff

Modified /trunk/Source Code/Physics/PXDevice.cpp Diff

Modified /trunk/Source Code/Physics/PhysX/Headers/PhysX.h Diff

Modified /trunk/Source Code/Physics/PhysX/PhysX.cpp Diff

Modified /trunk/Source Code/Physics/PhysX/PhysXSceneInterface.cpp Diff

Modified /trunk/Source Code/Platform/Audio/Headers/AudioAPIWrapper.h Diff

Modified /trunk/Source Code/Platform/Audio/Headers/SFXDevice.h Diff

Modified /trunk/Source Code/Platform/Audio/SFXDevice.cpp Diff

Modified /trunk/Source Code/Platform/Audio/fmod/Headers/FmodWrapper.h Diff

Modified /trunk/Source Code/Platform/Audio/openAl/ALWrapper.cpp Diff

Modified /trunk/Source Code/Platform/Audio/openAl/Headers/ALWrapper.h Diff

Modified /trunk/Source Code/Platform/Audio/sdl_mixer/Headers/SDLWrapper.h Diff

Modified /trunk/Source Code/Platform/Audio/sdl_mixer/SDLWrapper.cpp Diff

Modified /trunk/Source Code/Platform/Input/EventHandler.cpp Diff

Modified /trunk/Source Code/Platform/Input/Headers/InputInterface.h Diff

Modified /trunk/Source Code/Platform/Input/InputInterface.cpp Diff

Modified /trunk/Source Code/Platform/Video/Direct3D/Headers/DXWrapper.h Diff

Modified /trunk/Source Code/Platform/Video/GFXDevice.cpp Diff

Modified /trunk/Source Code/Platform/Video/GFXDeviceDebug.cpp Diff

Modified /trunk/Source Code/Platform/Video/GFXDeviceDraw.cpp Diff

Modified /trunk/Source Code/Platform/Video/GFXDeviceObjects.cpp Diff

Modified /trunk/Source Code/Platform/Video/GFXDeviceState.cpp Diff

Modified /trunk/Source Code/Platform/Video/Headers/GFXDevice.h Diff

Modified /trunk/Source Code/Platform/Video/Headers/GFXDevice.inl Diff

Modified /trunk/Source Code/Platform/Video/Headers/ScopedStates.h Diff

Modified /trunk/Source Code/Platform/Video/OpenGL/Buffers/RenderTarget/glFramebuffer.cpp Diff

Modified /trunk/Source Code/Platform/Video/OpenGL/GLWrapper.cpp Diff

Modified /trunk/Source Code/Platform/Video/OpenGL/Headers/GLWrapper.h Diff

Modified /trunk/Source Code/Platform/Video/OpenGL/Textures/glTexture.cpp Diff

Modified /trunk/Source Code/Platform/Video/ScopedStates.cpp Diff

Modified /trunk/Source Code/Platform/Video/Shaders/Headers/ShaderProgram.h Diff

Modified /trunk/Source Code/Platform/Video/Shaders/ShaderProgram.cpp Diff

Modified /trunk/Source Code/Rendering/DeferredShadingRenderer.cpp Diff

Modified /trunk/Source Code/Rendering/EnvironmentProbe.cpp Diff

Modified /trunk/Source Code/Rendering/Headers/DeferredShadingRenderer.h Diff

Modified /trunk/Source Code/Rendering/Headers/EnvironmentProbe.h Diff

Modified /trunk/Source Code/Rendering/Headers/Renderer.h Diff

Modified /trunk/Source Code/Rendering/Headers/TiledForwardShadingRenderer.h Diff

Modified /trunk/Source Code/Rendering/Lighting/DirectionalLight.cpp Diff

Modified /trunk/Source Code/Rendering/Lighting/Headers/DirectionalLight.h Diff

Modified /trunk/Source Code/Rendering/Lighting/Headers/Light.h Diff

Modified /trunk/Source Code/Rendering/Lighting/Headers/LightPool.h Diff

Modified /trunk/Source Code/Rendering/Lighting/Headers/PointLight.h Diff

Modified /trunk/Source Code/Rendering/Lighting/Headers/SpotLight.h Diff

Modified /trunk/Source Code/Rendering/Lighting/Light.cpp Diff

Modified /trunk/Source Code/Rendering/Lighting/LightPool.cpp Diff

Modified /trunk/Source Code/Rendering/Lighting/PointLight.cpp Diff

Modified /trunk/Source Code/Rendering/Lighting/ShadowMapping/CascadedShadowMaps.cpp Diff

Modified /trunk/Source Code/Rendering/Lighting/ShadowMapping/CubeShadowMap.cpp Diff

Modified /trunk/Source Code/Rendering/Lighting/ShadowMapping/Headers/CascadedShadowMaps.h Diff

Modified /trunk/Source Code/Rendering/Lighting/ShadowMapping/Headers/CubeShadowMap.h Diff

Modified /trunk/Source Code/Rendering/Lighting/ShadowMapping/Headers/ShadowMap.h Diff

Modified /trunk/Source Code/Rendering/Lighting/ShadowMapping/Headers/SingleShadowMap.h Diff

Modified /trunk/Source Code/Rendering/Lighting/ShadowMapping/ShadowMap.cpp Diff

Modified /trunk/Source Code/Rendering/Lighting/ShadowMapping/SingleShadowMap.cpp Diff

Modified /trunk/Source Code/Rendering/Lighting/SpotLight.cpp Diff

Modified /trunk/Source Code/Rendering/PostFX/CustomOperators/BloomPreRenderOperator.cpp Diff

Modified /trunk/Source Code/Rendering/PostFX/CustomOperators/DoFPreRenderOperator.cpp Diff

Modified /trunk/Source Code/Rendering/PostFX/CustomOperators/Headers/BloomPreRenderOperator.h Diff

Modified /trunk/Source Code/Rendering/PostFX/CustomOperators/Headers/DoFPreRenderOperator.h Diff

Modified /trunk/Source Code/Rendering/PostFX/CustomOperators/Headers/PostAAPreRenderOperator.h Diff

Modified /trunk/Source Code/Rendering/PostFX/CustomOperators/Headers/SSAOPreRenderOperator.h Diff

Modified /trunk/Source Code/Rendering/PostFX/CustomOperators/PostAAPreRenderOperator.cpp Diff

Modified /trunk/Source Code/Rendering/PostFX/CustomOperators/SSAOPreRenderOperator.cpp Diff

Modified /trunk/Source Code/Rendering/PostFX/Headers/PostFX.h Diff

Modified /trunk/Source Code/Rendering/PostFX/Headers/PreRenderBatch.h Diff

Modified /trunk/Source Code/Rendering/PostFX/Headers/PreRenderOperator.h Diff

Modified /trunk/Source Code/Rendering/PostFX/PostFX.cpp Diff

Modified /trunk/Source Code/Rendering/PostFX/PreRenderBatch.cpp Diff

Modified /trunk/Source Code/Rendering/PostFX/PreRenderOperator.cpp Diff

Modified /trunk/Source Code/Rendering/RenderPass/Headers/RenderPass.h Diff

Modified /trunk/Source Code/Rendering/RenderPass/RenderPass.cpp Diff

Modified /trunk/Source Code/Rendering/TiledForwardShadingRenderer.cpp Diff

Modified /trunk/Source Code/SceneList.h Diff

Modified /trunk/Source Code/Scenes/CubeScene/CubeScene.cpp Diff

Modified /trunk/Source Code/Scenes/CubeScene/Headers/CubeScene.h Diff

Modified /trunk/Source Code/Scenes/DefaultScene/DefaultScene.cpp Diff

Modified /trunk/Source Code/Scenes/DefaultScene/Headers/DefaultScene.h Diff

Modified /trunk/Source Code/Scenes/FlashScene/Headers/FlashScene.h Diff

Modified /trunk/Source Code/Scenes/Headers/Scene.h Diff

Modified /trunk/Source Code/Scenes/Headers/ScenePool.h Diff

Modified /trunk/Source Code/Scenes/MainScene/Headers/MainScene.h Diff

Modified /trunk/Source Code/Scenes/MainScene/MainScene.cpp Diff

Modified /trunk/Source Code/Scenes/NetworkScene/Headers/NetworkScene.h Diff

Modified /trunk/Source Code/Scenes/NetworkScene/Network/ASIOImpl.cpp Diff

Modified /trunk/Source Code/Scenes/NetworkScene/Network/Headers/ASIOImpl.h Diff

Modified /trunk/Source Code/Scenes/NetworkScene/NetworkScene.cpp Diff

Modified /trunk/Source Code/Scenes/PhysXScene/Headers/PhysXScene.h Diff

Modified /trunk/Source Code/Scenes/PhysXScene/PhysXScene.cpp Diff

Modified /trunk/Source Code/Scenes/PingPongScene/Headers/PingPongScene.h Diff

Modified /trunk/Source Code/Scenes/PingPongScene/PingPongScene.cpp Diff

Modified /trunk/Source Code/Scenes/ReflectionScene/Headers/ReflectionScene.h Diff

Modified /trunk/Source Code/Scenes/ReflectionScene/ReflectionScene.cpp Diff

Modified /trunk/Source Code/Scenes/Scene.cpp Diff

Modified /trunk/Source Code/Scenes/SceneEnvironmentProbePool.cpp Diff

Modified /trunk/Source Code/Scenes/ScenePool.cpp Diff

Modified /trunk/Source Code/Scenes/ShadowScene/Headers/ShadowScene.h Diff

Modified /trunk/Source Code/Scenes/ShadowScene/ShadowScene.cpp Diff

Modified /trunk/Source Code/Scenes/TenisScene/Headers/TenisScene.h Diff

Modified /trunk/Source Code/Scenes/TenisScene/TenisScene.cpp Diff

Modified /trunk/Source Code/Scenes/WarScene/Headers/WarScene.h Diff

Modified /trunk/Source Code/Scenes/WarScene/WarScene.cpp Diff

Modified /trunk/Source Code/Scenes/WarScene/WarSceneAI.cpp Diff

Modified /trunk/Source Code/Utility/Headers/XMLParser.h Diff

Modified /trunk/Source Code/Utility/XMLParser.cpp Diff

Modified /trunk/VCData/Divide.sln Diff

Modified /trunk/VCData/VisualStudioProjects/Divide-Engine-Tests.vcxproj Diff

Modified /trunk/VCData/VisualStudioProjects/Divide-Engine.vcxproj Diff

Modified /trunk/VCData/VisualStudioProjects/Divide-Engine.vcxproj.filters Diff

Modified /trunk/VCData/VisualStudioProjects/Divide-Game.vcxproj Diff

Modified /trunk/VCData/VisualStudioProjects/Divide-GameExecutable.vcxproj Diff

Modified /trunk/VCData/VisualStudioProjects/Divide-Networking.vcxproj Diff

Modified /trunk/VCData/VisualStudioProjects/Divide-Platform-Tests.vcxproj Diff

Modified /trunk/VCData/VisualStudioProjects/Divide-Platform.vcxproj Diff

Modified /trunk/VCData/VisualStudioProjects/Divide-ReCast.vcxproj Diff

Modified /trunk/VCData/VisualStudioProjects/Divide-Server.vcxproj Diff