Panagiotis Christopoulos Charitos 14 years ago
parent
commit
061f8823c7
100 changed files with 95 additions and 88 deletions
  1. 5 5
      .cproject
  2. 2 2
      src/CMakeLists.txt
  3. 18 18
      src/Main.cpp
  4. 1 1
      src/collision/CMakeLists.txt
  5. 0 0
      src/collision/Collision.h
  6. 7 0
      src/collision/CollisionShape.h
  7. 0 0
      src/collision/LineSegment.cpp
  8. 1 1
      src/collision/LineSegment.h
  9. 0 0
      src/collision/Obb.cpp
  10. 1 1
      src/collision/Obb.h
  11. 0 0
      src/collision/Obb.inl.h
  12. 0 0
      src/collision/PerspectiveCameraShape.cpp
  13. 3 3
      src/collision/PerspectiveCameraShape.h
  14. 0 0
      src/collision/Plane.cpp
  15. 1 1
      src/collision/Plane.h
  16. 0 0
      src/collision/Ray.cpp
  17. 1 1
      src/collision/Ray.h
  18. 0 0
      src/collision/Sphere.cpp
  19. 1 1
      src/collision/Sphere.h
  20. 0 0
      src/collision/Sphere.inl.h
  21. 1 1
      src/event/MainRendererPpsHdrEvent.cpp
  22. 1 1
      src/event/SceneColorEvent.h
  23. 1 1
      src/gl/Vao.cpp
  24. 1 1
      src/input/CMakeLists.txt
  25. 0 0
      src/input/Input.cpp
  26. 1 1
      src/input/Input.h
  27. 0 0
      src/math/Axisang.h
  28. 0 0
      src/math/Axisang.inl.h
  29. 1 1
      src/math/CMakeLists.txt
  30. 0 0
      src/math/Euler.h
  31. 0 0
      src/math/Euler.inl.h
  32. 0 0
      src/math/Mat3.h
  33. 0 0
      src/math/Mat3.inl.h
  34. 0 0
      src/math/Mat4.h
  35. 0 0
      src/math/Mat4.inl.h
  36. 0 0
      src/math/Math.cpp
  37. 0 0
      src/math/Math.h
  38. 0 0
      src/math/Math.inl.h
  39. 0 0
      src/math/MathCommonIncludes.h
  40. 0 0
      src/math/MathCommonSrc.h
  41. 0 0
      src/math/MathForward.h
  42. 0 0
      src/math/MathSimd.h
  43. 0 0
      src/math/Quat.h
  44. 0 0
      src/math/Quat.inl.h
  45. 0 0
      src/math/Transform.h
  46. 0 0
      src/math/Transform.inl.h
  47. 0 0
      src/math/Vec2.h
  48. 0 0
      src/math/Vec2.inl.h
  49. 0 0
      src/math/Vec3.h
  50. 0 0
      src/math/Vec3.inl.h
  51. 0 0
      src/math/Vec4.h
  52. 0 0
      src/math/Vec4.inl.h
  53. 1 1
      src/misc/PropertyTree.h
  54. 1 1
      src/misc/TestHeader.cpp
  55. 1 1
      src/physics/CMakeLists.txt
  56. 0 0
      src/physics/Character.cpp
  57. 1 1
      src/physics/Character.h
  58. 1 1
      src/physics/Convertors.h
  59. 0 0
      src/physics/MotionState.h
  60. 0 0
      src/physics/PhysWorld.cpp
  61. 0 0
      src/physics/PhysWorld.h
  62. 0 0
      src/physics/Ragdoll.h
  63. 0 0
      src/physics/RigidBody.cpp
  64. 1 1
      src/physics/RigidBody.h
  65. 1 1
      src/renderer/Bl.cpp
  66. 2 2
      src/renderer/Bl.h
  67. 4 4
      src/renderer/Bs.cpp
  68. 2 2
      src/renderer/Bs.h
  69. 1 1
      src/renderer/CMakeLists.txt
  70. 1 1
      src/renderer/CollisionDbgDrawer.cpp
  71. 0 0
      src/renderer/CollisionDbgDrawer.h
  72. 0 0
      src/renderer/Dbg.cpp
  73. 3 3
      src/renderer/Dbg.h
  74. 2 2
      src/renderer/Deformer.cpp
  75. 1 1
      src/renderer/Deformer.h
  76. 0 0
      src/renderer/Ez.cpp
  77. 0 0
      src/renderer/Ez.h
  78. 0 0
      src/renderer/Hdr.cpp
  79. 2 2
      src/renderer/Hdr.h
  80. 2 2
      src/renderer/Is.cpp
  81. 4 4
      src/renderer/Is.h
  82. 0 0
      src/renderer/MainRenderer.cpp
  83. 0 0
      src/renderer/MainRenderer.h
  84. 0 0
      src/renderer/Ms.cpp
  85. 1 1
      src/renderer/Ms.h
  86. 1 1
      src/renderer/PhysDbgDrawer.cpp
  87. 0 0
      src/renderer/PhysDbgDrawer.h
  88. 0 0
      src/renderer/Pps.cpp
  89. 2 2
      src/renderer/Pps.h
  90. 0 0
      src/renderer/Renderer.cpp
  91. 4 4
      src/renderer/Renderer.h
  92. 0 0
      src/renderer/RendererInitializer.h
  93. 0 0
      src/renderer/RenderingPass.h
  94. 0 0
      src/renderer/SceneDbgDrawer.cpp
  95. 0 0
      src/renderer/SceneDbgDrawer.h
  96. 2 2
      src/renderer/SceneDrawer.cpp
  97. 3 3
      src/renderer/SceneDrawer.h
  98. 1 1
      src/renderer/Sm.cpp
  99. 1 1
      src/renderer/Sm.h
  100. 2 2
      src/renderer/Smo.cpp

+ 5 - 5
.cproject

@@ -65,16 +65,16 @@
 					<folderInfo id="cdt.managedbuild.config.gnu.exe.release.571635259." name="/" resourcePath="">
 						<toolChain id="cdt.managedbuild.toolchain.gnu.exe.release.1798558317" name="Linux GCC" superClass="cdt.managedbuild.toolchain.gnu.exe.release">
 							<targetPlatform id="cdt.managedbuild.target.gnu.platform.exe.release.1852283584" name="Debug Platform" superClass="cdt.managedbuild.target.gnu.platform.exe.release"/>
-							<builder buildPath="${workspace_loc:/anki/Release}" id="cdt.managedbuild.target.gnu.builder.exe.release.154092247" managedBuildOn="true" name="Gnu Make Builder.Release" superClass="cdt.managedbuild.target.gnu.builder.exe.release"/>
+							<builder buildPath="${workspace_loc:/anki/Release}" id="cdt.managedbuild.target.gnu.builder.exe.release.154092247" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="cdt.managedbuild.target.gnu.builder.exe.release"/>
 							<tool id="cdt.managedbuild.tool.gnu.archiver.base.1469196148" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.base"/>
 							<tool id="cdt.managedbuild.tool.gnu.cpp.compiler.exe.release.1634217479" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.exe.release">
-								<option id="gnu.cpp.compiler.exe.release.option.optimization.level.467488783" superClass="gnu.cpp.compiler.exe.release.option.optimization.level" value="gnu.cpp.compiler.optimization.level.most" valueType="enumerated"/>
-								<option id="gnu.cpp.compiler.exe.release.option.debugging.level.1206763877" superClass="gnu.cpp.compiler.exe.release.option.debugging.level" value="gnu.cpp.compiler.debugging.level.none" valueType="enumerated"/>
+								<option id="gnu.cpp.compiler.exe.release.option.optimization.level.467488783" name="Optimization Level" superClass="gnu.cpp.compiler.exe.release.option.optimization.level" value="gnu.cpp.compiler.optimization.level.most" valueType="enumerated"/>
+								<option id="gnu.cpp.compiler.exe.release.option.debugging.level.1206763877" name="Debug Level" superClass="gnu.cpp.compiler.exe.release.option.debugging.level" value="gnu.cpp.compiler.debugging.level.none" valueType="enumerated"/>
 								<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1897753799" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
 							</tool>
 							<tool id="cdt.managedbuild.tool.gnu.c.compiler.exe.release.1453949923" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.exe.release">
-								<option defaultValue="gnu.c.optimization.level.most" id="gnu.c.compiler.exe.release.option.optimization.level.204107120" superClass="gnu.c.compiler.exe.release.option.optimization.level" valueType="enumerated"/>
-								<option id="gnu.c.compiler.exe.release.option.debugging.level.1402099681" superClass="gnu.c.compiler.exe.release.option.debugging.level" value="gnu.c.debugging.level.none" valueType="enumerated"/>
+								<option defaultValue="gnu.c.optimization.level.most" id="gnu.c.compiler.exe.release.option.optimization.level.204107120" name="Optimization Level" superClass="gnu.c.compiler.exe.release.option.optimization.level" valueType="enumerated"/>
+								<option id="gnu.c.compiler.exe.release.option.debugging.level.1402099681" name="Debug Level" superClass="gnu.c.compiler.exe.release.option.debugging.level" value="gnu.c.debugging.level.none" valueType="enumerated"/>
 								<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.813305505" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
 							</tool>
 							<tool id="cdt.managedbuild.tool.gnu.c.linker.exe.release.1557937760" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.exe.release"/>

+ 2 - 2
src/CMakeLists.txt

@@ -2,8 +2,8 @@ PROJECT(ANKI_PROJ)
 
 INCLUDE_DIRECTORIES(${ANKI_PROJ_SOURCE_DIR})
 
-SET(ANKI_LIBS script r scene ui event 
-	i phys rsrc core misc gl cln m util)
+SET(ANKI_LIBS script renderer scene ui event 
+	input physics resource core misc gl collision math util)
 
 SUBDIRS(${ANKI_LIBS})
 

+ 18 - 18
src/Main.cpp

@@ -2,39 +2,39 @@
 #include <iostream>
 #include <fstream>
 
-#include "i/Input.h"
+#include "input/Input.h"
 #include "scene/PerspectiveCamera.h"
 #include "scene/OrthographicCamera.h"
-#include "m/Math.h"
-#include "r/Renderer.h"
+#include "math/Math.h"
+#include "renderer/Renderer.h"
 #include "ui/UiPainter.h"
 #include "core/App.h"
-#include "rsrc/Mesh.h"
+#include "resource/Mesh.h"
 #include "scene/Light.h"
 #include "scene/PointLight.h"
 #include "scene/SpotLight.h"
-#include "rsrc/Material.h"
+#include "resource/Material.h"
 #include "scene/Scene.h"
 #include "util/scanner/Scanner.h"
-#include "rsrc/SkelAnim.h"
-#include "rsrc/LightRsrc.h"
+#include "resource/SkelAnim.h"
+#include "resource/LightRsrc.h"
 #include "misc/Parser.h"
 #include "scene/ParticleEmitterNode.h"
-#include "phys/Character.h"
-#include "r/Renderer.h"
-#include "r/RendererInitializer.h"
-#include "r/MainRenderer.h"
-#include "phys/Character.h"
-#include "phys/RigidBody.h"
+#include "physics/Character.h"
+#include "renderer/Renderer.h"
+#include "renderer/RendererInitializer.h"
+#include "renderer/MainRenderer.h"
+#include "physics/Character.h"
+#include "physics/RigidBody.h"
 #include "script/ScriptManager.h"
 #include "core/StdinListener.h"
 #include "scene/ModelNode.h"
-#include "rsrc/Model.h"
+#include "resource/Model.h"
 #include "core/Logger.h"
 #include "util/Util.h"
 #include "util/HighRezTimer.h"
 #include "scene/SkinNode.h"
-#include "rsrc/Skin.h"
+#include "resource/Skin.h"
 #include "scene/MaterialRuntime.h"
 #include "core/Globals.h"
 #include "ui/UiFtFontLoader.h"
@@ -42,10 +42,10 @@
 #include "event/EventManager.h"
 #include "event/SceneColorEvent.h"
 #include "event/MainRendererPpsHdrEvent.h"
-#include "rsrc/ShaderProgramPrePreprocessor.h"
-#include "rsrc/Material.h"
+#include "resource/ShaderProgramPrePreprocessor.h"
+#include "resource/Material.h"
 #include "core/parallel/Manager.h"
-#include "r/PhysDbgDrawer.h"
+#include "renderer/PhysDbgDrawer.h"
 #include <boost/algorithm/string.hpp>
 
 

+ 1 - 1
src/cln/CMakeLists.txt → src/collision/CMakeLists.txt

@@ -1,4 +1,4 @@
 FILE(GLOB CLN_SOURCES *.cpp)
 FILE(GLOB CLN_HEADERS *.h)
 
-ADD_LIBRARY(cln ${CLN_SOURCES} ${CLN_HEADERS})
+ADD_LIBRARY(collision ${CLN_SOURCES} ${CLN_HEADERS})

+ 0 - 0
src/cln/Collision.h → src/collision/Collision.h


+ 7 - 0
src/cln/CollisionShape.h → src/collision/CollisionShape.h

@@ -24,6 +24,13 @@ class CollisionShape
 			CST_PERSPECTIVE_CAMERA_FRUSTRUM
 		};
 
+		/// Generic visitor
+		class Visitor
+		{
+			public:
+				virtual void visit(class LineSegment&) = 0;
+		};
+
 		CollisionShape(CollisionShapeType cid_)
 		:	cid(cid_)
 		{}

+ 0 - 0
src/cln/LineSegment.cpp → src/collision/LineSegment.cpp


+ 1 - 1
src/cln/LineSegment.h → src/collision/LineSegment.h

@@ -2,7 +2,7 @@
 #define LINE_SEGMENT_H
 
 #include "CollisionShape.h"
-#include "m/Vec3.h"
+#include "math/Vec3.h"
 
 
 /// @addtogroup Collision

+ 0 - 0
src/cln/Obb.cpp → src/collision/Obb.cpp


+ 1 - 1
src/cln/Obb.h → src/collision/Obb.h

@@ -2,7 +2,7 @@
 #define OBB_H
 
 #include "CollisionShape.h"
-#include "m/Math.h"
+#include "math/Math.h"
 #include <boost/array.hpp>
 
 

+ 0 - 0
src/cln/Obb.inl.h → src/collision/Obb.inl.h


+ 0 - 0
src/cln/PerspectiveCameraShape.cpp → src/collision/PerspectiveCameraShape.cpp


+ 3 - 3
src/cln/PerspectiveCameraShape.h → src/collision/PerspectiveCameraShape.h

@@ -1,8 +1,8 @@
-#ifndef PROJECTION_CAMERA_FRUSTUM_H
-#define PROJECTION_CAMERA_FRUSTUM_H
+#ifndef PROJECTION_CAMERA_SHAPE_H
+#define PROJECTION_CAMERA_SHAPE_H
 
 #include "CollisionShape.h"
-#include "m/Math.h"
+#include "math/Math.h"
 
 
 /// @addtogroup Collision

+ 0 - 0
src/cln/Plane.cpp → src/collision/Plane.cpp


+ 1 - 1
src/cln/Plane.h → src/collision/Plane.h

@@ -2,7 +2,7 @@
 #define PLANE_H
 
 #include "CollisionShape.h"
-#include "m/Math.h"
+#include "math/Math.h"
 
 
 /// @addtogroup Collision

+ 0 - 0
src/cln/Ray.cpp → src/collision/Ray.cpp


+ 1 - 1
src/cln/Ray.h → src/collision/Ray.h

@@ -2,7 +2,7 @@
 #define RAY_H
 
 #include "CollisionShape.h"
-#include "m/Math.h"
+#include "math/Math.h"
 
 
 class Plane;

+ 0 - 0
src/cln/Sphere.cpp → src/collision/Sphere.cpp


+ 1 - 1
src/cln/Sphere.h → src/collision/Sphere.h

@@ -2,7 +2,7 @@
 #define SPHERE_H
 
 #include "CollisionShape.h"
-#include "m/Math.h"
+#include "math/Math.h"
 
 
 class Plane;

+ 0 - 0
src/cln/Sphere.inl.h → src/collision/Sphere.inl.h


+ 1 - 1
src/event/MainRendererPpsHdrEvent.cpp

@@ -1,5 +1,5 @@
 #include "MainRendererPpsHdrEvent.h"
-#include "r/MainRenderer.h"
+#include "renderer/MainRenderer.h"
 #include "core/Globals.h"
 
 

+ 1 - 1
src/event/SceneColorEvent.h

@@ -2,7 +2,7 @@
 #define SCENE_COLOR_EVENT_H
 
 #include "Event.h"
-#include "m/Math.h"
+#include "math/Math.h"
 
 
 /// Change the scene color

+ 1 - 1
src/gl/Vao.cpp

@@ -1,7 +1,7 @@
 #include "Vao.h"
 #include "Vbo.h"
 #include "util/Exception.h"
-#include "rsrc/ShaderProgramAttributeVariable.h"
+#include "resource/ShaderProgramAttributeVariable.h"
 
 
 //==============================================================================

+ 1 - 1
src/i/CMakeLists.txt → src/input/CMakeLists.txt

@@ -1,4 +1,4 @@
 FILE(GLOB I_SOURCES *.cpp)
 FILE(GLOB I_HEADERS *.h)
 
-ADD_LIBRARY(i ${I_SOURCES} ${I_HEADERS})
+ADD_LIBRARY(input ${I_SOURCES} ${I_HEADERS})

+ 0 - 0
src/i/Input.cpp → src/input/Input.cpp


+ 1 - 1
src/i/Input.h → src/input/Input.h

@@ -1,7 +1,7 @@
 #ifndef INPUT_H
 #define INPUT_H
 
-#include "m/Math.h"
+#include "math/Math.h"
 #include <SDL/SDL_scancode.h>
 #include <boost/array.hpp>
 

+ 0 - 0
src/m/Axisang.h → src/math/Axisang.h


+ 0 - 0
src/m/Axisang.inl.h → src/math/Axisang.inl.h


+ 1 - 1
src/m/CMakeLists.txt → src/math/CMakeLists.txt

@@ -1,4 +1,4 @@
 FILE(GLOB M_SOURCES *.cpp)
 FILE(GLOB M_HEADERS *.h)
 
-ADD_LIBRARY(m ${M_SOURCES} ${M_HEADERS})
+ADD_LIBRARY(math ${M_SOURCES} ${M_HEADERS})

+ 0 - 0
src/m/Euler.h → src/math/Euler.h


+ 0 - 0
src/m/Euler.inl.h → src/math/Euler.inl.h


+ 0 - 0
src/m/Mat3.h → src/math/Mat3.h


+ 0 - 0
src/m/Mat3.inl.h → src/math/Mat3.inl.h


+ 0 - 0
src/m/Mat4.h → src/math/Mat4.h


+ 0 - 0
src/m/Mat4.inl.h → src/math/Mat4.inl.h


+ 0 - 0
src/m/Math.cpp → src/math/Math.cpp


+ 0 - 0
src/m/Math.h → src/math/Math.h


+ 0 - 0
src/m/Math.inl.h → src/math/Math.inl.h


+ 0 - 0
src/m/MathCommonIncludes.h → src/math/MathCommonIncludes.h


+ 0 - 0
src/m/MathCommonSrc.h → src/math/MathCommonSrc.h


+ 0 - 0
src/m/MathForward.h → src/math/MathForward.h


+ 0 - 0
src/m/MathSimd.h → src/math/MathSimd.h


+ 0 - 0
src/m/Quat.h → src/math/Quat.h


+ 0 - 0
src/m/Quat.inl.h → src/math/Quat.inl.h


+ 0 - 0
src/m/Transform.h → src/math/Transform.h


+ 0 - 0
src/m/Transform.inl.h → src/math/Transform.inl.h


+ 0 - 0
src/m/Vec2.h → src/math/Vec2.h


+ 0 - 0
src/m/Vec2.inl.h → src/math/Vec2.inl.h


+ 0 - 0
src/m/Vec3.h → src/math/Vec3.h


+ 0 - 0
src/m/Vec3.inl.h → src/math/Vec3.inl.h


+ 0 - 0
src/m/Vec4.h → src/math/Vec4.h


+ 0 - 0
src/m/Vec4.inl.h → src/math/Vec4.inl.h


+ 1 - 1
src/misc/PropertyTree.h

@@ -3,7 +3,7 @@
 
 #include <boost/optional.hpp>
 #include <boost/property_tree/ptree_fwd.hpp>
-#include "m/Math.h"
+#include "math/Math.h"
 
 
 namespace PropertyTree {

+ 1 - 1
src/misc/TestHeader.cpp

@@ -1,4 +1,4 @@
-#include "m/Vec2.h"
+#include "math/Vec2.h"
 
 
 

+ 1 - 1
src/phys/CMakeLists.txt → src/physics/CMakeLists.txt

@@ -1,4 +1,4 @@
 FILE(GLOB PHYS_SOURCES *.cpp)
 FILE(GLOB PHYS_HEADERS *.h)
 
-ADD_LIBRARY(phys ${PHYS_SOURCES} ${PHYS_HEADERS})
+ADD_LIBRARY(physics ${PHYS_SOURCES} ${PHYS_HEADERS})

+ 0 - 0
src/phys/Character.cpp → src/physics/Character.cpp


+ 1 - 1
src/phys/Character.h → src/physics/Character.h

@@ -1,7 +1,7 @@
 #ifndef CHARACTER_H
 #define CHARACTER_H
 
-#include "m/Math.h"
+#include "math/Math.h"
 #include "core/Object.h"
 
 

+ 1 - 1
src/phys/Convertors.h → src/physics/Convertors.h

@@ -3,7 +3,7 @@
 
 #include <btBulletCollisionCommon.h>
 #include <btBulletDynamicsCommon.h>
-#include "m/Math.h"
+#include "math/Math.h"
 
 
 inline Vec3 toAnki(const btVector3& v)

+ 0 - 0
src/phys/MotionState.h → src/physics/MotionState.h


+ 0 - 0
src/phys/PhysWorld.cpp → src/physics/PhysWorld.cpp


+ 0 - 0
src/phys/PhysWorld.h → src/physics/PhysWorld.h


+ 0 - 0
src/phys/Ragdoll.h → src/physics/Ragdoll.h


+ 0 - 0
src/phys/RigidBody.cpp → src/physics/RigidBody.cpp


+ 1 - 1
src/phys/RigidBody.h → src/physics/RigidBody.h

@@ -4,7 +4,7 @@
 #include <boost/scoped_ptr.hpp>
 #include <btBulletDynamicsCommon.h>
 #include <btBulletCollisionCommon.h>
-#include "m/Math.h"
+#include "math/Math.h"
 
 
 class SceneNode;

+ 1 - 1
src/r/Bl.cpp → src/renderer/Bl.cpp

@@ -1,7 +1,7 @@
 #include "Bl.h"
 #include "RendererInitializer.h"
 #include "Renderer.h"
-#include "rsrc/ShaderProgram.h"
+#include "resource/ShaderProgram.h"
 
 
 //==============================================================================

+ 2 - 2
src/r/Bl.h → src/renderer/Bl.h

@@ -2,8 +2,8 @@
 #define BL_H
 
 #include "RenderingPass.h"
-#include "rsrc/Texture.h"
-#include "rsrc/RsrcPtr.h"
+#include "resource/Texture.h"
+#include "resource/RsrcPtr.h"
 #include "gl/Fbo.h"
 
 

+ 4 - 4
src/r/Bs.cpp → src/renderer/Bs.cpp

@@ -2,11 +2,11 @@
 #include "Bs.h"
 #include "Renderer.h"
 #include "scene/Scene.h"
-#include "rsrc/ShaderProgram.h"
-#include "rsrc/Model.h"
+#include "resource/ShaderProgram.h"
+#include "resource/Model.h"
 #include "scene/ModelNode.h"
-#include "rsrc/Material.h"
-#include "rsrc/Mesh.h"
+#include "resource/Material.h"
+#include "resource/Mesh.h"
 
 
 //==============================================================================

+ 2 - 2
src/r/Bs.h → src/renderer/Bs.h

@@ -3,8 +3,8 @@
 
 #include "RenderingPass.h"
 #include "gl/Fbo.h"
-#include "rsrc/RsrcPtr.h"
-#include "rsrc/Texture.h"
+#include "resource/RsrcPtr.h"
+#include "resource/Texture.h"
 
 
 class ShaderProgram;

+ 1 - 1
src/r/CMakeLists.txt → src/renderer/CMakeLists.txt

@@ -1,4 +1,4 @@
 FILE(GLOB_RECURSE R_SOURCES *.cpp)
 FILE(GLOB_RECURSE R_HEADERS *.h)
 
-ADD_LIBRARY(r ${R_SOURCES} ${R_HEADERS})
+ADD_LIBRARY(renderer ${R_SOURCES} ${R_HEADERS})

+ 1 - 1
src/r/CollisionDbgDrawer.cpp → src/renderer/CollisionDbgDrawer.cpp

@@ -1,6 +1,6 @@
 #include "CollisionDbgDrawer.h"
 #include "Dbg.h"
-#include "cln/Collision.h"
+#include "collision/Collision.h"
 
 //==============================================================================
 // draw (Sphere)                                                               =

+ 0 - 0
src/r/CollisionDbgDrawer.h → src/renderer/CollisionDbgDrawer.h


+ 0 - 0
src/r/Dbg.cpp → src/renderer/Dbg.cpp


+ 3 - 3
src/r/Dbg.h → src/renderer/Dbg.h

@@ -5,9 +5,9 @@
 #include <map>
 #include "RenderingPass.h"
 #include "gl/Fbo.h"
-#include "rsrc/ShaderProgram.h"
-#include "rsrc/RsrcPtr.h"
-#include "m/Math.h"
+#include "resource/ShaderProgram.h"
+#include "resource/RsrcPtr.h"
+#include "math/Math.h"
 #include "gl/Vbo.h"
 #include "gl/Vao.h"
 #include "SceneDbgDrawer.h"

+ 2 - 2
src/r/Deformer.cpp → src/renderer/Deformer.cpp

@@ -1,6 +1,6 @@
 #include "Deformer.h"
-#include "rsrc/ShaderProgram.h"
-#include "rsrc/Material.h"
+#include "resource/ShaderProgram.h"
+#include "resource/Material.h"
 #include "scene/SkinPatchNode.h"
 #include "scene/SkinNode.h"
 #include "MainRenderer.h"

+ 1 - 1
src/r/Deformer.h → src/renderer/Deformer.h

@@ -1,7 +1,7 @@
 #ifndef DEFORMER_H
 #define DEFORMER_H
 
-#include "rsrc/RsrcPtr.h"
+#include "resource/RsrcPtr.h"
 
 
 class ShaderProgram;

+ 0 - 0
src/r/Ez.cpp → src/renderer/Ez.cpp


+ 0 - 0
src/r/Ez.h → src/renderer/Ez.h


+ 0 - 0
src/r/Hdr.cpp → src/renderer/Hdr.cpp


+ 2 - 2
src/r/Hdr.h → src/renderer/Hdr.h

@@ -3,8 +3,8 @@
 
 #include "RenderingPass.h"
 #include "gl/Fbo.h"
-#include "rsrc/Texture.h"
-#include "rsrc/RsrcPtr.h"
+#include "resource/Texture.h"
+#include "resource/RsrcPtr.h"
 
 
 class ShaderProgram;

+ 2 - 2
src/r/Is.cpp → src/renderer/Is.cpp

@@ -4,9 +4,9 @@
 #include "scene/Light.h"
 #include "scene/PointLight.h"
 #include "scene/SpotLight.h"
-#include "rsrc/LightRsrc.h"
+#include "resource/LightRsrc.h"
 #include "core/App.h"
-#include "rsrc/LightRsrc.h"
+#include "resource/LightRsrc.h"
 #include "Sm.h"
 #include "Smo.h"
 #include "scene/Scene.h"

+ 4 - 4
src/r/Is.h → src/renderer/Is.h

@@ -3,10 +3,10 @@
 
 #include "RenderingPass.h"
 #include "gl/Fbo.h"
-#include "rsrc/Texture.h"
-#include "rsrc/RsrcPtr.h"
-#include "rsrc/ShaderProgram.h"
-#include "m/Math.h"
+#include "resource/Texture.h"
+#include "resource/RsrcPtr.h"
+#include "resource/ShaderProgram.h"
+#include "math/Math.h"
 #include "gl/Vbo.h"
 #include "gl/Vao.h"
 #include "Sm.h"

+ 0 - 0
src/r/MainRenderer.cpp → src/renderer/MainRenderer.cpp


+ 0 - 0
src/r/MainRenderer.h → src/renderer/MainRenderer.h


+ 0 - 0
src/r/Ms.cpp → src/renderer/Ms.cpp


+ 1 - 1
src/r/Ms.h → src/renderer/Ms.h

@@ -2,7 +2,7 @@
 #define MS_H
 
 #include "RenderingPass.h"
-#include "rsrc/Texture.h"
+#include "resource/Texture.h"
 #include "gl/Fbo.h"
 #include "Ez.h"
 

+ 1 - 1
src/r/PhysDbgDrawer.cpp → src/renderer/PhysDbgDrawer.cpp

@@ -1,6 +1,6 @@
 #include "PhysDbgDrawer.h"
 #include "Dbg.h"
-#include "phys/Convertors.h"
+#include "physics/Convertors.h"
 #include "core/Logger.h"
 
 

+ 0 - 0
src/r/PhysDbgDrawer.h → src/renderer/PhysDbgDrawer.h


+ 0 - 0
src/r/Pps.cpp → src/renderer/Pps.cpp


+ 2 - 2
src/r/Pps.h → src/renderer/Pps.h

@@ -3,8 +3,8 @@
 
 #include "RenderingPass.h"
 #include "gl/Fbo.h"
-#include "rsrc/Texture.h"
-#include "rsrc/RsrcPtr.h"
+#include "resource/Texture.h"
+#include "resource/RsrcPtr.h"
 #include "Hdr.h"
 #include "Ssao.h"
 #include "Bl.h"

+ 0 - 0
src/r/Renderer.cpp → src/renderer/Renderer.cpp


+ 4 - 4
src/r/Renderer.h → src/renderer/Renderer.h

@@ -1,13 +1,13 @@
 #ifndef RENDERER_H
 #define RENDERER_H
 
-#include "m/Math.h"
+#include "math/Math.h"
 #include "gl/Fbo.h"
-#include "rsrc/Texture.h"
-#include "rsrc/ShaderProgram.h"
+#include "resource/Texture.h"
+#include "resource/ShaderProgram.h"
 #include "gl/Vbo.h"
 #include "gl/Vao.h"
-#include "rsrc/RsrcPtr.h"
+#include "resource/RsrcPtr.h"
 #include "Ms.h"
 #include "Is.h"
 #include "Pps.h"

+ 0 - 0
src/r/RendererInitializer.h → src/renderer/RendererInitializer.h


+ 0 - 0
src/r/RenderingPass.h → src/renderer/RenderingPass.h


+ 0 - 0
src/r/SceneDbgDrawer.cpp → src/renderer/SceneDbgDrawer.cpp


+ 0 - 0
src/r/SceneDbgDrawer.h → src/renderer/SceneDbgDrawer.h


+ 2 - 2
src/r/SceneDrawer.cpp → src/renderer/SceneDrawer.cpp

@@ -1,6 +1,6 @@
 #include "SceneDrawer.h"
-#include "m/Math.h"
-#include "rsrc/Material.h"
+#include "math/Math.h"
+#include "resource/Material.h"
 #include "scene/RenderableNode.h"
 #include "scene/Camera.h"
 #include "Renderer.h"

+ 3 - 3
src/r/SceneDrawer.h → src/renderer/SceneDrawer.h

@@ -1,9 +1,9 @@
 #ifndef SCENE_DRAWER_H
 #define SCENE_DRAWER_H
 
-#include "m/Math.h"
-#include "rsrc/MaterialCommon.h"
-#include "rsrc/RsrcPtr.h"
+#include "math/Math.h"
+#include "resource/MaterialCommon.h"
+#include "resource/RsrcPtr.h"
 #include <boost/variant.hpp>
 
 

+ 1 - 1
src/r/Sm.cpp → src/renderer/Sm.cpp

@@ -3,7 +3,7 @@
 #include "Renderer.h"
 #include "core/App.h"
 #include "scene/Scene.h"
-#include "rsrc/LightRsrc.h"
+#include "resource/LightRsrc.h"
 #include "scene/Camera.h"
 #include "scene/Light.h"
 #include "scene/SpotLight.h"

+ 1 - 1
src/r/Sm.h → src/renderer/Sm.h

@@ -3,7 +3,7 @@
 
 #include "RenderingPass.h"
 #include "gl/Fbo.h"
-#include "rsrc/Texture.h"
+#include "resource/Texture.h"
 #include "scene/VisibilityTester.h"
 
 

+ 2 - 2
src/r/Smo.cpp → src/renderer/Smo.cpp

@@ -1,7 +1,7 @@
 #include "Smo.h"
 #include "Renderer.h"
 #include "scene/Light.h"
-#include "rsrc/LightRsrc.h"
+#include "resource/LightRsrc.h"
 #include "scene/PointLight.h"
 #include "scene/SpotLight.h"
 #include "scene/Camera.h"
@@ -9,7 +9,7 @@
 #include "gl/Vbo.h"
 #include "scene/PerspectiveCamera.h"
 #include "scene/OrthographicCamera.h"
-#include "rsrc/Mesh.h"
+#include "resource/Mesh.h"
 
 
 const float THRESHOLD = 0.2;

Some files were not shown because too many files changed in this diff