Explorar el Código

Rewrote and fixed C++ examples on Mac, this will break Linux and Windows examples projects temporarily

Ivan Safrin hace 12 años
padre
commit
dbebcd2a77
Se han modificado 93 ficheros con 523 adiciones y 2401 borrados
  1. BIN
      Assets/Default asset pack/default.pak
  2. 6 0
      Assets/Default asset pack/default/default.mat
  3. 20 8
      Core/Contents/Source/PolyEntity.cpp
  4. 16 2
      Core/Contents/Source/PolyScene.cpp
  5. 72 563
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/project.pbxproj
  6. 0 76
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/2DAudio.xcscheme
  7. 0 76
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/2DParticles.xcscheme
  8. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/2DPhysics_Basic.xcscheme
  9. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/2DPhysics_CollisionOnly.xcscheme
  10. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/2DPhysics_Contacts.xcscheme
  11. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/2DPhysics_Joints.xcscheme
  12. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/2DPhysics_PointCollision.xcscheme
  13. 0 76
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/2DTransforms.xcscheme
  14. 0 76
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DAudio.xcscheme
  15. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DBasics.xcscheme
  16. 0 76
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DMeshParticles.xcscheme
  17. 0 76
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DParticles.xcscheme
  18. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DPhysics_Basic.xcscheme
  19. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DPhysics_Character.xcscheme
  20. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DPhysics_CollisionOnly.xcscheme
  21. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DPhysics_Contacts.xcscheme
  22. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DPhysics_RayTest.xcscheme
  23. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DPhysics_Vehicle.xcscheme
  24. 0 76
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/AdvancedLighting.xcscheme
  25. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/BasicImage.xcscheme
  26. 0 76
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/BasicLighting.xcscheme
  27. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/BasicText.xcscheme
  28. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/EventHandling.xcscheme
  29. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/KeyboardInput.xcscheme
  30. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/MouseInput.xcscheme
  31. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/Networking_Client.xcscheme
  32. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/Networking_Server.xcscheme
  33. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/PlayingSounds.xcscheme
  34. 0 76
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/ScreenEntities.xcscheme
  35. 0 76
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/ScreenSprites.xcscheme
  36. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/SkeletalAnimation.xcscheme
  37. 11 7
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/UpdateLoop.xcscheme
  38. 18 48
      Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/xcschememanagement.plist
  39. 0 44
      Examples/C++/Contents/2DAudio/HelloPolycodeApp.cpp
  40. 0 18
      Examples/C++/Contents/2DAudio/HelloPolycodeApp.h
  41. 8 9
      Examples/C++/Contents/2DPhysics_Basic/HelloPolycodeApp.cpp
  42. 7 6
      Examples/C++/Contents/2DPhysics_CollisionOnly/HelloPolycodeApp.cpp
  43. 11 9
      Examples/C++/Contents/2DPhysics_Contacts/HelloPolycodeApp.cpp
  44. 15 14
      Examples/C++/Contents/2DPhysics_Joints/HelloPolycodeApp.cpp
  45. 7 6
      Examples/C++/Contents/2DPhysics_PointCollision/HelloPolycodeApp.cpp
  46. 2 2
      Examples/C++/Contents/3DBasics/HelloPolycodeApp.cpp
  47. 0 76
      Examples/C++/Contents/3DMeshParticles/HelloPolycodeApp.cpp
  48. 0 14
      Examples/C++/Contents/3DMeshParticles/HelloPolycodeApp.h
  49. 0 69
      Examples/C++/Contents/3DParticles/HelloPolycodeApp.cpp
  50. 0 14
      Examples/C++/Contents/3DParticles/HelloPolycodeApp.h
  51. 1 1
      Examples/C++/Contents/3DPhysics_Basic/HelloPolycodeApp.cpp
  52. 11 9
      Examples/C++/Contents/3DPhysics_Character/HelloPolycodeApp.cpp
  53. 1 1
      Examples/C++/Contents/3DPhysics_CollisionOnly/HelloPolycodeApp.cpp
  54. 1 1
      Examples/C++/Contents/3DPhysics_Contacts/HelloPolycodeApp.cpp
  55. 4 4
      Examples/C++/Contents/3DPhysics_RayTest/HelloPolycodeApp.cpp
  56. 1 7
      Examples/C++/Contents/3DPhysics_Vehicle/HelloPolycodeApp.cpp
  57. 3 2
      Examples/C++/Contents/BasicImage/HelloPolycodeApp.cpp
  58. 0 34
      Examples/C++/Contents/BasicLighting/HelloPolycodeApp.cpp
  59. 0 14
      Examples/C++/Contents/BasicLighting/HelloPolycodeApp.h
  60. 2 1
      Examples/C++/Contents/BasicText/HelloPolycodeApp.cpp
  61. 3 2
      Examples/C++/Contents/EventHandling/HelloPolycodeApp.cpp
  62. 3 2
      Examples/C++/Contents/KeyboardInput/HelloPolycodeApp.cpp
  63. 0 0
      Examples/C++/Contents/MaterialsAndLights/HelloPolycodeApp.cpp
  64. 0 0
      Examples/C++/Contents/MaterialsAndLights/HelloPolycodeApp.h
  65. 7 4
      Examples/C++/Contents/MouseInput/HelloPolycodeApp.cpp
  66. 1 0
      Examples/C++/Contents/MouseInput/HelloPolycodeApp.h
  67. 0 148
      Examples/C++/Contents/Networking_Client/HelloPolycodeApp.cpp
  68. 0 33
      Examples/C++/Contents/Networking_Client/HelloPolycodeApp.h
  69. 0 36
      Examples/C++/Contents/Networking_Client/NetworkingExampleGlobals.h
  70. 0 158
      Examples/C++/Contents/Networking_Server/HelloPolycodeApp.cpp
  71. 0 51
      Examples/C++/Contents/Networking_Server/HelloPolycodeApp.h
  72. 0 36
      Examples/C++/Contents/Networking_Server/NetworkingExampleGlobals.h
  73. 12 4
      Examples/C++/Contents/ParticleSystems/HelloPolycodeApp.cpp
  74. 0 0
      Examples/C++/Contents/ParticleSystems/HelloPolycodeApp.h
  75. 5 7
      Examples/C++/Contents/PositionalSounds/HelloPolycodeApp.cpp
  76. 0 0
      Examples/C++/Contents/PositionalSounds/HelloPolycodeApp.h
  77. 10 10
      Examples/C++/Contents/SceneEntities/HelloPolycodeApp.cpp
  78. 6 3
      Examples/C++/Contents/SceneSprites/HelloPolycodeApp.cpp
  79. 18 12
      Examples/C++/Contents/SkeletalAnimation/HelloPolycodeApp.cpp
  80. 3 0
      Examples/C++/Contents/SkeletalAnimation/HelloPolycodeApp.h
  81. 4 3
      Examples/C++/Contents/Transforms/HelloPolycodeApp.cpp
  82. 0 0
      Examples/C++/Contents/Transforms/HelloPolycodeApp.h
  83. 3 2
      Examples/C++/Contents/UpdateLoop/HelloPolycodeApp.cpp
  84. BIN
      Examples/C++/Resources/default.pak
  85. BIN
      Examples/C++/Resources/dummy.mesh
  86. BIN
      Examples/C++/Resources/dummy.png
  87. BIN
      Examples/C++/Resources/dummy.skeleton
  88. BIN
      Examples/C++/Resources/idle.anim
  89. BIN
      Examples/C++/Resources/ninja.mesh
  90. BIN
      Examples/C++/Resources/ninja.png
  91. BIN
      Examples/C++/Resources/ninja.skeleton
  92. BIN
      Examples/C++/Resources/particle.png
  93. BIN
      Examples/C++/Resources/run.anim

BIN
Assets/Default asset pack/default.pak


+ 6 - 0
Assets/Default asset pack/default/default.mat

@@ -85,6 +85,12 @@
 				</textures>				
 			</shader>
 		</material>
+		<material name="UnlitAdditive" blendingMode="2">
+			<shader name="Unlit">
+				<textures>
+				</textures>				
+			</shader>
+		</material>		
 		<material name="DefaultWithShadows">
 			<shader name="DefaultShaderShadows">
 				<textures>

+ 20 - 8
Core/Contents/Source/PolyEntity.cpp

@@ -506,13 +506,21 @@ void Entity::transformAndRender() {
 		Render();
 		renderer->popMatrix();
 	}
+    
+    if(!colorAffectsChildren) {
+        renderer->popVertexColor();
+        if(visible || (!visible && !visibilityAffectsChildren)) {
+            renderChildren();
+        }
+    } else {
+        if(visible || (!visible && !visibilityAffectsChildren)) {
+            renderChildren();
+        }
+        renderer->popVertexColor();
+    }
 		
-	if(visible || (!visible && !visibilityAffectsChildren)) {
-		renderChildren();	
-	}
 				
 	renderer->popMatrix();
-    renderer->popVertexColor();
 	
 	if(!depthWrite)
 		renderer->enableDepthWrite(true);
@@ -673,10 +681,12 @@ Vector3 Entity::getEulerRotation() const {
 
 Matrix4 Entity::getConcatenatedMatrixRelativeTo(Entity *relativeEntity) {
 	
-	if(matrixDirty)
+	if(matrixDirty) {
 		rebuildTransformMatrix();
+        recalculateAABBAllChildren();
+    }
 
-	if(parentEntity != NULL && parentEntity != relativeEntity) 
+	if(parentEntity != NULL && parentEntity != relativeEntity)
 		return transformMatrix * parentEntity->getConcatenatedMatrixRelativeTo(relativeEntity);
 	else
 		return transformMatrix;
@@ -690,9 +700,11 @@ Matrix4 Entity::getAnchorAdjustedMatrix() {
 }
 
 Matrix4 Entity::getConcatenatedMatrix() {
-	if(matrixDirty)
+	if(matrixDirty) {
 		rebuildTransformMatrix();
-
+        recalculateAABBAllChildren();
+    }
+    
 	if(parentEntity != NULL) 
 		return transformMatrix * parentEntity->getConcatenatedMatrix();
 	else

+ 16 - 2
Core/Contents/Source/PolyScene.cpp

@@ -327,8 +327,22 @@ Ray Scene::projectRayFromCameraAndViewportCoordinate(Camera *camera, Vector2 coo
 	switch(sceneType) {
 		case SCENE_2D:
 		{
-			Number orthoSizeX = camera->getOrthoSizeX();
-			Number orthoSizeY = camera->getOrthoSizeY();
+            
+            Number orthoSizeX = camera->getOrthoSizeX();
+            Number orthoSizeY = camera->getOrthoSizeY();
+
+            switch(camera->getProjectionMode()) {
+                case Camera::ORTHO_SIZE_LOCK_HEIGHT:
+                    orthoSizeX = orthoSizeY * (viewport.w/viewport.h);
+                    break;
+                case Camera::ORTHO_SIZE_LOCK_WIDTH:
+                    orthoSizeY = orthoSizeX * (viewport.h/viewport.w);
+                    break;
+                case Camera::ORTHO_SIZE_VIEWPORT:
+                    orthoSizeX = camera->getViewport().x;
+                    orthoSizeY = camera->getViewport().y;
+                break;
+            }
             
             Vector2 remappedMouse = Vector2(coordinate.x, coordinate.y);
             Vector2 screenSize = Vector2(core->getXRes(), core->getYRes());

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 72 - 563
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/project.pbxproj


+ 0 - 76
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/2DAudio.xcscheme

@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
-   version = "1.3">
-   <BuildAction
-      parallelizeBuildables = "YES"
-      buildImplicitDependencies = "YES">
-      <BuildActionEntries>
-         <BuildActionEntry
-            buildForTesting = "YES"
-            buildForRunning = "YES"
-            buildForProfiling = "YES"
-            buildForArchiving = "YES"
-            buildForAnalyzing = "YES">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "6D6EC01E13EC5F1E00FCEA29"
-               BuildableName = "2DAudio.app"
-               BlueprintName = "2DAudio"
-               ReferencedContainer = "container:PolycodeExample.xcodeproj">
-            </BuildableReference>
-         </BuildActionEntry>
-      </BuildActionEntries>
-   </BuildAction>
-   <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      buildConfiguration = "Debug">
-      <Testables>
-      </Testables>
-   </TestAction>
-   <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      launchStyle = "0"
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6D6EC01E13EC5F1E00FCEA29"
-            BuildableName = "2DAudio.app"
-            BlueprintName = "2DAudio"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-      <AdditionalOptions>
-      </AdditionalOptions>
-   </LaunchAction>
-   <ProfileAction
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      savedToolIdentifier = ""
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6D6EC01E13EC5F1E00FCEA29"
-            BuildableName = "2DAudio.app"
-            BlueprintName = "2DAudio"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-   </ProfileAction>
-   <AnalyzeAction
-      buildConfiguration = "Debug">
-   </AnalyzeAction>
-   <ArchiveAction
-      buildConfiguration = "Release"
-      revealArchiveInOrganizer = "YES">
-   </ArchiveAction>
-</Scheme>

+ 0 - 76
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/2DParticles.xcscheme

@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
-   version = "1.3">
-   <BuildAction
-      parallelizeBuildables = "YES"
-      buildImplicitDependencies = "YES">
-      <BuildActionEntries>
-         <BuildActionEntry
-            buildForTesting = "YES"
-            buildForRunning = "YES"
-            buildForProfiling = "YES"
-            buildForArchiving = "YES"
-            buildForAnalyzing = "YES">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "6D6EBF9A13EC54C700FCEA29"
-               BuildableName = "2DParticles.app"
-               BlueprintName = "2DParticles"
-               ReferencedContainer = "container:PolycodeExample.xcodeproj">
-            </BuildableReference>
-         </BuildActionEntry>
-      </BuildActionEntries>
-   </BuildAction>
-   <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      buildConfiguration = "Debug">
-      <Testables>
-      </Testables>
-   </TestAction>
-   <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      launchStyle = "0"
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6D6EBF9A13EC54C700FCEA29"
-            BuildableName = "2DParticles.app"
-            BlueprintName = "2DParticles"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-      <AdditionalOptions>
-      </AdditionalOptions>
-   </LaunchAction>
-   <ProfileAction
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      savedToolIdentifier = ""
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6D6EBF9A13EC54C700FCEA29"
-            BuildableName = "2DParticles.app"
-            BlueprintName = "2DParticles"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-   </ProfileAction>
-   <AnalyzeAction
-      buildConfiguration = "Debug">
-   </AnalyzeAction>
-   <ArchiveAction
-      buildConfiguration = "Release"
-      revealArchiveInOrganizer = "YES">
-   </ArchiveAction>
-</Scheme>

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/2DPhysics_Basic.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/2DPhysics_CollisionOnly.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/2DPhysics_Contacts.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/2DPhysics_Joints.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/2DPhysics_PointCollision.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 0 - 76
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/2DTransforms.xcscheme

@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
-   version = "1.3">
-   <BuildAction
-      parallelizeBuildables = "YES"
-      buildImplicitDependencies = "YES">
-      <BuildActionEntries>
-         <BuildActionEntry
-            buildForTesting = "YES"
-            buildForRunning = "YES"
-            buildForProfiling = "YES"
-            buildForArchiving = "YES"
-            buildForAnalyzing = "YES">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "6DB7CDD313E8B61500398A04"
-               BuildableName = "2DTransforms.app"
-               BlueprintName = "2DTransforms"
-               ReferencedContainer = "container:PolycodeExample.xcodeproj">
-            </BuildableReference>
-         </BuildActionEntry>
-      </BuildActionEntries>
-   </BuildAction>
-   <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      buildConfiguration = "Debug">
-      <Testables>
-      </Testables>
-   </TestAction>
-   <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      launchStyle = "0"
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6DB7CDD313E8B61500398A04"
-            BuildableName = "2DTransforms.app"
-            BlueprintName = "2DTransforms"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-      <AdditionalOptions>
-      </AdditionalOptions>
-   </LaunchAction>
-   <ProfileAction
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      savedToolIdentifier = ""
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6DB7CDD313E8B61500398A04"
-            BuildableName = "2DTransforms.app"
-            BlueprintName = "2DTransforms"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-   </ProfileAction>
-   <AnalyzeAction
-      buildConfiguration = "Debug">
-   </AnalyzeAction>
-   <ArchiveAction
-      buildConfiguration = "Release"
-      revealArchiveInOrganizer = "YES">
-   </ArchiveAction>
-</Scheme>

+ 0 - 76
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DAudio.xcscheme

@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
-   version = "1.3">
-   <BuildAction
-      parallelizeBuildables = "YES"
-      buildImplicitDependencies = "YES">
-      <BuildActionEntries>
-         <BuildActionEntry
-            buildForTesting = "YES"
-            buildForRunning = "YES"
-            buildForProfiling = "YES"
-            buildForArchiving = "YES"
-            buildForAnalyzing = "YES">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "6DE0EEDC13E91F9F00A0842D"
-               BuildableName = "3DAudio.app"
-               BlueprintName = "3DAudio"
-               ReferencedContainer = "container:PolycodeExample.xcodeproj">
-            </BuildableReference>
-         </BuildActionEntry>
-      </BuildActionEntries>
-   </BuildAction>
-   <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      buildConfiguration = "Debug">
-      <Testables>
-      </Testables>
-   </TestAction>
-   <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      launchStyle = "0"
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6DE0EEDC13E91F9F00A0842D"
-            BuildableName = "3DAudio.app"
-            BlueprintName = "3DAudio"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-      <AdditionalOptions>
-      </AdditionalOptions>
-   </LaunchAction>
-   <ProfileAction
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      savedToolIdentifier = ""
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6DE0EEDC13E91F9F00A0842D"
-            BuildableName = "3DAudio.app"
-            BlueprintName = "3DAudio"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-   </ProfileAction>
-   <AnalyzeAction
-      buildConfiguration = "Debug">
-   </AnalyzeAction>
-   <ArchiveAction
-      buildConfiguration = "Release"
-      revealArchiveInOrganizer = "YES">
-   </ArchiveAction>
-</Scheme>

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DBasics.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 0 - 76
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DMeshParticles.xcscheme

@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
-   version = "1.3">
-   <BuildAction
-      parallelizeBuildables = "YES"
-      buildImplicitDependencies = "YES">
-      <BuildActionEntries>
-         <BuildActionEntry
-            buildForTesting = "YES"
-            buildForRunning = "YES"
-            buildForProfiling = "YES"
-            buildForArchiving = "YES"
-            buildForAnalyzing = "YES">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "6D6EBFDC13EC573100FCEA29"
-               BuildableName = "3DMeshParticles.app"
-               BlueprintName = "3DMeshParticles"
-               ReferencedContainer = "container:PolycodeExample.xcodeproj">
-            </BuildableReference>
-         </BuildActionEntry>
-      </BuildActionEntries>
-   </BuildAction>
-   <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      buildConfiguration = "Debug">
-      <Testables>
-      </Testables>
-   </TestAction>
-   <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      launchStyle = "0"
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6D6EBFDC13EC573100FCEA29"
-            BuildableName = "3DMeshParticles.app"
-            BlueprintName = "3DMeshParticles"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-      <AdditionalOptions>
-      </AdditionalOptions>
-   </LaunchAction>
-   <ProfileAction
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      savedToolIdentifier = ""
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6D6EBFDC13EC573100FCEA29"
-            BuildableName = "3DMeshParticles.app"
-            BlueprintName = "3DMeshParticles"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-   </ProfileAction>
-   <AnalyzeAction
-      buildConfiguration = "Debug">
-   </AnalyzeAction>
-   <ArchiveAction
-      buildConfiguration = "Release"
-      revealArchiveInOrganizer = "YES">
-   </ArchiveAction>
-</Scheme>

+ 0 - 76
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DParticles.xcscheme

@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
-   version = "1.3">
-   <BuildAction
-      parallelizeBuildables = "YES"
-      buildImplicitDependencies = "YES">
-      <BuildActionEntries>
-         <BuildActionEntry
-            buildForTesting = "YES"
-            buildForRunning = "YES"
-            buildForProfiling = "YES"
-            buildForArchiving = "YES"
-            buildForAnalyzing = "YES">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "6D6EBFBB13EC55E800FCEA29"
-               BuildableName = "3DParticles.app"
-               BlueprintName = "3DParticles"
-               ReferencedContainer = "container:PolycodeExample.xcodeproj">
-            </BuildableReference>
-         </BuildActionEntry>
-      </BuildActionEntries>
-   </BuildAction>
-   <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      buildConfiguration = "Debug">
-      <Testables>
-      </Testables>
-   </TestAction>
-   <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      launchStyle = "0"
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6D6EBFBB13EC55E800FCEA29"
-            BuildableName = "3DParticles.app"
-            BlueprintName = "3DParticles"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-      <AdditionalOptions>
-      </AdditionalOptions>
-   </LaunchAction>
-   <ProfileAction
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      savedToolIdentifier = ""
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6D6EBFBB13EC55E800FCEA29"
-            BuildableName = "3DParticles.app"
-            BlueprintName = "3DParticles"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-   </ProfileAction>
-   <AnalyzeAction
-      buildConfiguration = "Debug">
-   </AnalyzeAction>
-   <ArchiveAction
-      buildConfiguration = "Release"
-      revealArchiveInOrganizer = "YES">
-   </ArchiveAction>
-</Scheme>

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DPhysics_Basic.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DPhysics_Character.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DPhysics_CollisionOnly.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DPhysics_Contacts.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DPhysics_RayTest.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/3DPhysics_Vehicle.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 0 - 76
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/AdvancedLighting.xcscheme

@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
-   version = "1.3">
-   <BuildAction
-      parallelizeBuildables = "YES"
-      buildImplicitDependencies = "YES">
-      <BuildActionEntries>
-         <BuildActionEntry
-            buildForTesting = "YES"
-            buildForRunning = "YES"
-            buildForProfiling = "YES"
-            buildForArchiving = "YES"
-            buildForAnalyzing = "YES">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "6DE0EE9A13E91C6200A0842D"
-               BuildableName = "AdvancedLighting.app"
-               BlueprintName = "AdvancedLighting"
-               ReferencedContainer = "container:PolycodeExample.xcodeproj">
-            </BuildableReference>
-         </BuildActionEntry>
-      </BuildActionEntries>
-   </BuildAction>
-   <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      buildConfiguration = "Debug">
-      <Testables>
-      </Testables>
-   </TestAction>
-   <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      launchStyle = "0"
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6DE0EE9A13E91C6200A0842D"
-            BuildableName = "AdvancedLighting.app"
-            BlueprintName = "AdvancedLighting"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-      <AdditionalOptions>
-      </AdditionalOptions>
-   </LaunchAction>
-   <ProfileAction
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      savedToolIdentifier = ""
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6DE0EE9A13E91C6200A0842D"
-            BuildableName = "AdvancedLighting.app"
-            BlueprintName = "AdvancedLighting"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-   </ProfileAction>
-   <AnalyzeAction
-      buildConfiguration = "Debug">
-   </AnalyzeAction>
-   <ArchiveAction
-      buildConfiguration = "Release"
-      revealArchiveInOrganizer = "YES">
-   </ArchiveAction>
-</Scheme>

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/BasicImage.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 0 - 76
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/BasicLighting.xcscheme

@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
-   version = "1.3">
-   <BuildAction
-      parallelizeBuildables = "YES"
-      buildImplicitDependencies = "YES">
-      <BuildActionEntries>
-         <BuildActionEntry
-            buildForTesting = "YES"
-            buildForRunning = "YES"
-            buildForProfiling = "YES"
-            buildForArchiving = "YES"
-            buildForAnalyzing = "YES">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "6D6EC03F13EC7AA000FCEA29"
-               BuildableName = "BasicLighting.app"
-               BlueprintName = "BasicLighting"
-               ReferencedContainer = "container:PolycodeExample.xcodeproj">
-            </BuildableReference>
-         </BuildActionEntry>
-      </BuildActionEntries>
-   </BuildAction>
-   <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      buildConfiguration = "Debug">
-      <Testables>
-      </Testables>
-   </TestAction>
-   <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      launchStyle = "0"
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6D6EC03F13EC7AA000FCEA29"
-            BuildableName = "BasicLighting.app"
-            BlueprintName = "BasicLighting"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-      <AdditionalOptions>
-      </AdditionalOptions>
-   </LaunchAction>
-   <ProfileAction
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      savedToolIdentifier = ""
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6D6EC03F13EC7AA000FCEA29"
-            BuildableName = "BasicLighting.app"
-            BlueprintName = "BasicLighting"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-   </ProfileAction>
-   <AnalyzeAction
-      buildConfiguration = "Debug">
-   </AnalyzeAction>
-   <ArchiveAction
-      buildConfiguration = "Release"
-      revealArchiveInOrganizer = "YES">
-   </ArchiveAction>
-</Scheme>

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/BasicText.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/EventHandling.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/KeyboardInput.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/MouseInput.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/Networking_Client.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/Networking_Server.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/PlayingSounds.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 0 - 76
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/ScreenEntities.xcscheme

@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
-   version = "1.3">
-   <BuildAction
-      parallelizeBuildables = "YES"
-      buildImplicitDependencies = "YES">
-      <BuildActionEntries>
-         <BuildActionEntry
-            buildForTesting = "YES"
-            buildForRunning = "YES"
-            buildForProfiling = "YES"
-            buildForArchiving = "YES"
-            buildForAnalyzing = "YES">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "6DE0EE5713E9174600A0842D"
-               BuildableName = "ScreenEntities.app"
-               BlueprintName = "ScreenEntities"
-               ReferencedContainer = "container:PolycodeExample.xcodeproj">
-            </BuildableReference>
-         </BuildActionEntry>
-      </BuildActionEntries>
-   </BuildAction>
-   <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      buildConfiguration = "Debug">
-      <Testables>
-      </Testables>
-   </TestAction>
-   <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      launchStyle = "0"
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6DE0EE5713E9174600A0842D"
-            BuildableName = "ScreenEntities.app"
-            BlueprintName = "ScreenEntities"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-      <AdditionalOptions>
-      </AdditionalOptions>
-   </LaunchAction>
-   <ProfileAction
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      savedToolIdentifier = ""
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6DE0EE5713E9174600A0842D"
-            BuildableName = "ScreenEntities.app"
-            BlueprintName = "ScreenEntities"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-   </ProfileAction>
-   <AnalyzeAction
-      buildConfiguration = "Debug">
-   </AnalyzeAction>
-   <ArchiveAction
-      buildConfiguration = "Release"
-      revealArchiveInOrganizer = "YES">
-   </ArchiveAction>
-</Scheme>

+ 0 - 76
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/ScreenSprites.xcscheme

@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
-   version = "1.3">
-   <BuildAction
-      parallelizeBuildables = "YES"
-      buildImplicitDependencies = "YES">
-      <BuildActionEntries>
-         <BuildActionEntry
-            buildForTesting = "YES"
-            buildForRunning = "YES"
-            buildForProfiling = "YES"
-            buildForArchiving = "YES"
-            buildForAnalyzing = "YES">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "6DE0EE7813E91AFA00A0842D"
-               BuildableName = "ScreenSprites.app"
-               BlueprintName = "ScreenSprites"
-               ReferencedContainer = "container:PolycodeExample.xcodeproj">
-            </BuildableReference>
-         </BuildActionEntry>
-      </BuildActionEntries>
-   </BuildAction>
-   <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      buildConfiguration = "Debug">
-      <Testables>
-      </Testables>
-   </TestAction>
-   <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      launchStyle = "0"
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6DE0EE7813E91AFA00A0842D"
-            BuildableName = "ScreenSprites.app"
-            BlueprintName = "ScreenSprites"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-      <AdditionalOptions>
-      </AdditionalOptions>
-   </LaunchAction>
-   <ProfileAction
-      displayScaleIsEnabled = "NO"
-      displayScale = "1.00"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      savedToolIdentifier = ""
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "6DE0EE7813E91AFA00A0842D"
-            BuildableName = "ScreenSprites.app"
-            BlueprintName = "ScreenSprites"
-            ReferencedContainer = "container:PolycodeExample.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-   </ProfileAction>
-   <AnalyzeAction
-      buildConfiguration = "Debug">
-   </AnalyzeAction>
-   <ArchiveAction
-      buildConfiguration = "Release"
-      revealArchiveInOrganizer = "YES">
-   </ArchiveAction>
-</Scheme>

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/SkeletalAnimation.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 11 - 7
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/UpdateLoop.xcscheme

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   version = "1.3">
+   version = "1.8">
    <BuildAction
       parallelizeBuildables = "YES"
       buildImplicitDependencies = "YES">
@@ -22,21 +22,24 @@
       </BuildActionEntries>
    </BuildAction>
    <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES"
       buildConfiguration = "Debug">
       <Testables>
       </Testables>
    </TestAction>
    <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       displayScaleIsEnabled = "NO"
       displayScale = "1.00"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug">
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -55,7 +58,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release">
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
       <BuildableProductRunnable>
          <BuildableReference
             BuildableIdentifier = "primary"

+ 18 - 48
Examples/C++/Build/Darwin/PolycodeExample.xcodeproj/xcuserdata/ivansafrin.xcuserdatad/xcschemes/xcschememanagement.plist

@@ -4,16 +4,6 @@
 <dict>
 	<key>SchemeUserState</key>
 	<dict>
-		<key>2DAudio.xcscheme</key>
-		<dict>
-			<key>orderHint</key>
-			<integer>14</integer>
-		</dict>
-		<key>2DParticles.xcscheme</key>
-		<dict>
-			<key>orderHint</key>
-			<integer>16</integer>
-		</dict>
 		<key>2DPhysics_Basic.xcscheme</key>
 		<dict>
 			<key>orderHint</key>
@@ -39,31 +29,11 @@
 			<key>orderHint</key>
 			<integer>23</integer>
 		</dict>
-		<key>2DTransforms.xcscheme</key>
-		<dict>
-			<key>orderHint</key>
-			<integer>2</integer>
-		</dict>
-		<key>3DAudio.xcscheme</key>
-		<dict>
-			<key>orderHint</key>
-			<integer>15</integer>
-		</dict>
 		<key>3DBasics.xcscheme</key>
 		<dict>
 			<key>orderHint</key>
 			<integer>9</integer>
 		</dict>
-		<key>3DMeshParticles.xcscheme</key>
-		<dict>
-			<key>orderHint</key>
-			<integer>18</integer>
-		</dict>
-		<key>3DParticles.xcscheme</key>
-		<dict>
-			<key>orderHint</key>
-			<integer>17</integer>
-		</dict>
 		<key>3DPhysics_Basic.xcscheme</key>
 		<dict>
 			<key>orderHint</key>
@@ -94,21 +64,11 @@
 			<key>orderHint</key>
 			<integer>29</integer>
 		</dict>
-		<key>AdvancedLighting.xcscheme</key>
-		<dict>
-			<key>orderHint</key>
-			<integer>11</integer>
-		</dict>
 		<key>BasicImage.xcscheme</key>
 		<dict>
 			<key>orderHint</key>
 			<integer>0</integer>
 		</dict>
-		<key>BasicLighting.xcscheme</key>
-		<dict>
-			<key>orderHint</key>
-			<integer>10</integer>
-		</dict>
 		<key>BasicText.xcscheme</key>
 		<dict>
 			<key>orderHint</key>
@@ -124,32 +84,37 @@
 			<key>orderHint</key>
 			<integer>8</integer>
 		</dict>
-		<key>MouseInput.xcscheme</key>
+		<key>MaterialsAndLights.xcscheme</key>
 		<dict>
 			<key>orderHint</key>
-			<integer>7</integer>
+			<integer>11</integer>
 		</dict>
-		<key>Networking_Client.xcscheme</key>
+		<key>MouseInput.xcscheme</key>
 		<dict>
 			<key>orderHint</key>
-			<integer>31</integer>
+			<integer>7</integer>
 		</dict>
-		<key>Networking_Server.xcscheme</key>
+		<key>ParticleSystems.xcscheme</key>
 		<dict>
 			<key>orderHint</key>
-			<integer>30</integer>
+			<integer>16</integer>
 		</dict>
 		<key>PlayingSounds.xcscheme</key>
 		<dict>
 			<key>orderHint</key>
 			<integer>13</integer>
 		</dict>
-		<key>ScreenEntities.xcscheme</key>
+		<key>PositionalSounds.xcscheme</key>
+		<dict>
+			<key>orderHint</key>
+			<integer>15</integer>
+		</dict>
+		<key>SceneEntities.xcscheme</key>
 		<dict>
 			<key>orderHint</key>
 			<integer>3</integer>
 		</dict>
-		<key>ScreenSprites.xcscheme</key>
+		<key>SceneSprites.xcscheme</key>
 		<dict>
 			<key>orderHint</key>
 			<integer>4</integer>
@@ -159,6 +124,11 @@
 			<key>orderHint</key>
 			<integer>12</integer>
 		</dict>
+		<key>Transforms.xcscheme</key>
+		<dict>
+			<key>orderHint</key>
+			<integer>2</integer>
+		</dict>
 		<key>UpdateLoop.xcscheme</key>
 		<dict>
 			<key>orderHint</key>

+ 0 - 44
Examples/C++/Contents/2DAudio/HelloPolycodeApp.cpp

@@ -1,44 +0,0 @@
-#include "HelloPolycodeApp.h"
-	
-HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
-
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);	  
-	
-	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
-	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);	
-
-	Scene *scene = new Scene(Scene::SCENE_2D_TOPLEFT);
-	
-	sourceEntity = new SceneEntity();
-	SceneSound *testSound = new SceneSound("Resources/test.wav", 200, 600);
-	testSound->getSound()->Play(true);
-	sourceEntity->addChild(testSound);
-	ScenePrimitive *soundShape = new ScenePrimitive(ScenePrimitive::TYPE_CIRCLE, 20,20,10);
-	sourceEntity->addChild(soundShape);	
-	scene->addChild(sourceEntity);
-	
-	listenerEntity = new SceneEntity();
-	SceneSoundListener *soundListener = new SceneSoundListener();
-	listenerEntity->addChild(soundListener);
-	soundShape = new ScenePrimitive(ScenePrimitive::TYPE_CIRCLE, 20,20,10);
-	soundShape->setColor(0.0, 1.0, 0.0, 1.0);
-	listenerEntity->addChild(soundShape);	
-	scene->addChild(listenerEntity);
-
-	listenerPositionValue = 0;
-	positionValue = 0;	
-}
-
-HelloPolycodeApp::~HelloPolycodeApp() {
-    
-}
-
-bool HelloPolycodeApp::Update() {
-	positionValue += core->getElapsed();
-	listenerPositionValue += core->getElapsed() * 0.3;	
-	
-	sourceEntity->setPosition(300 + (sin(positionValue) * 300), 250 + cos(positionValue) * 100); 
-	listenerEntity->setPosition(300 + (sin(listenerPositionValue) * 300), 250); 
-		
-    return core->updateAndRender();
-}

+ 0 - 18
Examples/C++/Contents/2DAudio/HelloPolycodeApp.h

@@ -1,18 +0,0 @@
-#include <Polycode.h>
-#include "PolycodeView.h"
-
-using namespace Polycode;
-
-class HelloPolycodeApp {
-public:
-    HelloPolycodeApp(PolycodeView *view);
-    ~HelloPolycodeApp();    
-    bool Update();
-    
-private:
-	Number positionValue;
-	Number listenerPositionValue;		
-	Core *core;	
-	ScreenEntity *sourceEntity;	
-	ScreenEntity *listenerEntity;	
-};

+ 8 - 9
Examples/C++/Contents/2DPhysics_Basic/HelloPolycodeApp.cpp

@@ -2,22 +2,21 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 
-	PhysicsScene2D *scene = new PhysicsScene2D(10, 60);
-	
-	ScenePrimitive *shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 600,30);
+	PhysicsScene2D *scene = new PhysicsScene2D(0.1, 60);	
+	ScenePrimitive *shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 1.0,0.05);
 	shape->setColor(0.0,0.0,0.1,1.0);
-	shape->setPosition(0, -480/2+40);
+	shape->setPosition(0, -0.3);
 	scene->addPhysicsChild(shape, PhysicsScene2DEntity::ENTITY_RECT, true);	
 	
 	for(int i=0; i < 200; i++) {
-		shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 20,5);
+		shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 0.08,0.02);
 		shape->setRoll(rand() % 360);
-		shape->setPosition(-640/2 + rand() % 640, 480/2 - rand() % 300);
-		scene->addPhysicsChild(shape, PhysicsScene2DEntity::ENTITY_RECT, false);		
+        shape->setColor(RANDOM_NUMBER, RANDOM_NUMBER, RANDOM_NUMBER, 1.0);
+		shape->setPosition(-0.3 + (RANDOM_NUMBER*0.6), RANDOM_NUMBER);
+		scene->addPhysicsChild(shape, PhysicsScene2DEntity::ENTITY_RECT, false);
 	}
-
 }
 
 HelloPolycodeApp::~HelloPolycodeApp() {

+ 7 - 6
Examples/C++/Contents/2DPhysics_CollisionOnly/HelloPolycodeApp.cpp

@@ -2,21 +2,21 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);	
 
-	scene = new PhysicsScene2D(10, 50);
+	scene = new PhysicsScene2D(0.1, 50);
 	
-	checkShape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 90,10);
+	checkShape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 0.2,0.03);
 	scene->addCollisionChild(checkShape, PhysicsScene2DEntity::ENTITY_RECT);
 
 	
 	for(int i=0; i < 50; i++) {
-		ScenePrimitive *shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 30,15);
+		ScenePrimitive *shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 0.1,0.02);
 		shape->setRoll(rand() % 360);
-		shape->setPosition(640/2 - rand() % 640, 480/2 - rand() % 480);
+		shape->setPosition(-0.5 + RANDOM_NUMBER, -0.5 + RANDOM_NUMBER);
 		scene->addCollisionChild(shape, PhysicsScene2DEntity::ENTITY_RECT);
 	}
 	
@@ -49,7 +49,8 @@ HelloPolycodeApp::~HelloPolycodeApp() {
 
 bool HelloPolycodeApp::Update() {
 	Vector2 mouse = core->getInput()->getMousePosition();
-	checkShape->setPosition(mouse.x-680/2+20, -mouse.y+480/2);
+    Ray ray = scene->projectRayFromCameraAndViewportCoordinate(scene->getActiveCamera(), mouse);
+    checkShape->setPosition(ray.origin.x, ray.origin.y);
 	checkShape->setRoll(checkShape->getRoll() + (core->getElapsed() * 100));
     return core->updateAndRender();
 }

+ 11 - 9
Examples/C++/Contents/2DPhysics_Contacts/HelloPolycodeApp.cpp

@@ -2,23 +2,25 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 	
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);	
 
-	scene = new PhysicsScene2D(10, 60);		
-	ScenePrimitive *shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 600,30);
-	shape->setColor(0.0,0.0,0.0,1.0);
-	shape->setPosition(0, -480/2+40);
-	scene->addPhysicsChild(shape, PhysicsScene2DEntity::ENTITY_RECT, true);	
+	PhysicsScene2D *scene = new PhysicsScene2D(0.1, 60);
+	ScenePrimitive *shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 1.0,0.05);
+	shape->setColor(0.0,0.0,0.1,1.0);
+	shape->setPosition(0, -0.3);
+	scene->addPhysicsChild(shape, PhysicsScene2DEntity::ENTITY_RECT, true);
 	
 	for(int i=0; i < 50; i++) {
-		shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 20,5);
+		shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 0.08,0.02);
 		shape->setRoll(rand() % 360);
-		shape->setPosition(-640/2 + rand() % 640, 480/2 - rand() % 300);
-		scene->addPhysicsChild(shape, PhysicsScene2DEntity::ENTITY_RECT, false);		
+        shape->setColor(RANDOM_NUMBER, RANDOM_NUMBER, RANDOM_NUMBER, 1.0);
+		shape->setPosition(-0.3 + (RANDOM_NUMBER*0.6), RANDOM_NUMBER);
+		scene->addPhysicsChild(shape, PhysicsScene2DEntity::ENTITY_RECT, false);
 	}
+    
 	collisionSound = new Sound("Resources/hit.wav");
 	scene->addEventListener(this, PhysicsScene2DEvent::EVENT_SOLVE_SHAPE_COLLISION);
 }

+ 15 - 14
Examples/C++/Contents/2DPhysics_Joints/HelloPolycodeApp.cpp

@@ -2,41 +2,42 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 
-	PhysicsScene2D *scene = new PhysicsScene2D(10, 50);
+	PhysicsScene2D *scene = new PhysicsScene2D(0.1, 50);
 
-	ScenePrimitive *ceiling = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 640, 20);
+	ScenePrimitive *ceiling = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 2.0, 0.1);
 	ceiling->setColor(0.0, 0.0, 0.0, 1.0);
-	ceiling->setPosition(0, 480/2-10);
+	ceiling->setPosition(0, 0.5);
 	scene->addPhysicsChild(ceiling, PhysicsScene2DEntity::ENTITY_RECT, true);
 	
 	// Revolute Joint	
-	ScenePrimitive *shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 10, 30);
-	shape->setPosition(-170, 205);
+	ScenePrimitive *shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 0.03, 0.2);
+    shape->setAnchorPoint(0.0, 1.0, 0.0);
+	shape->setPosition(-0.3, 0.48);
 	scene->addPhysicsChild(shape, PhysicsScene2DEntity::ENTITY_RECT, false);
-	scene->createRevoluteJoint(shape, ceiling, -640/2, 255);
+	scene->createRevoluteJoint(shape, ceiling, 0.0, 0.01);
 	scene->applyImpulse(shape, 10, 0);
 	
 	// Distance Joint	
-	shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 10, 30);
-	shape->setPosition(-70, 195);
+	shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 0.1, 0.02);
+	shape->setPosition(0.0, 0.2);
 	scene->addPhysicsChild(shape, PhysicsScene2DEntity::ENTITY_RECT, false);
 	scene->createDistanceJoint(shape, ceiling, false);
-	scene->applyImpulse(shape, 200, 0);
+	scene->applyImpulse(shape, 2, 0);
 	
 	SceneLine *line = new SceneLine(shape, ceiling);
 	line->setColor(1.0, 0.0, 0.0, 1.0);
 	scene->addChild(line);
 
 	// Prismatic Joint	
-	shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 10, 30);
-	shape->setPosition(130, 45);
+	shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 0.05, 0.1);
+	shape->setPosition(0.3, 0.3);
 	scene->addPhysicsChild(shape, PhysicsScene2DEntity::ENTITY_RECT, false);
-	scene->createPrismaticJoint(ceiling, shape, Vector2(0,1), 0,0, false, 100, 0, true);
+	scene->createPrismaticJoint(ceiling, shape, Vector2(0,1), 0,0, false, -0.3, 0, true);
 
 	SceneEntity *lineAnchor = new SceneEntity();
-	lineAnchor->setPosition(130,480/2-10);
+	lineAnchor->setPosition(0.3,0.5);
 	line = new SceneLine(shape, lineAnchor);
 	line->setColor(0.0, 1.0, 0.0, 1.0);
 	scene->addChild(line);

+ 7 - 6
Examples/C++/Contents/2DPhysics_PointCollision/HelloPolycodeApp.cpp

@@ -2,24 +2,23 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90,0, true);
 	
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);	
 
-	scene = new PhysicsScene2D(0.5, 50);
+	scene = new PhysicsScene2D(0.01, 50);
 	lastEntity = NULL;
 	
 	for(int i=0; i < 50; i++) {
-		ScenePrimitive *shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 30,15);
+		ScenePrimitive *shape = new ScenePrimitive(ScenePrimitive::TYPE_VPLANE, 0.1,0.02);
 		shape->setRoll(rand() % 360);
-		shape->setPosition(-640/2 + rand() % 640, 480/2 - rand() % 480);
+		shape->setPosition(-0.5 + RANDOM_NUMBER, -0.5 + RANDOM_NUMBER);
 		scene->addCollisionChild(shape, PhysicsScene2DEntity::ENTITY_RECT);
 	}
 	
 }
 
-
 HelloPolycodeApp::~HelloPolycodeApp() {
     
 }
@@ -28,7 +27,9 @@ bool HelloPolycodeApp::Update() {
 	if(lastEntity)
 		lastEntity->setColor(1.0, 1.0, 1.0, 1.0);	
 	Vector2 mouse = core->getInput()->getMousePosition();
-	SceneEntity * entity = scene->getEntityAtPosition(mouse.x-680/2+20, -mouse.y+480/2);
+    Ray ray = scene->projectRayFromCameraAndViewportCoordinate(scene->getActiveCamera(), mouse);
+    
+	SceneEntity * entity = scene->getEntityAtPosition(ray.origin.x, ray.origin.y);
 	if(entity) {
 		entity->setColor(1.0, 0.0, 0.0, 1.0);
 		lastEntity = entity;

+ 2 - 2
Examples/C++/Contents/3DBasics/HelloPolycodeApp.cpp

@@ -2,12 +2,12 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
-	Scene *scene = new Scene();
+	Scene *scene = new Scene(Scene::SCENE_3D);
 	ScenePrimitive *ground = new ScenePrimitive(ScenePrimitive::TYPE_PLANE, 5,5);
 	ground->loadTexture("Resources/green_texture.png");
 	scene->addEntity(ground);

+ 0 - 76
Examples/C++/Contents/3DMeshParticles/HelloPolycodeApp.cpp

@@ -1,76 +0,0 @@
-#include "HelloPolycodeApp.h"
-
-HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
-
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
-
-	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
-	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
-	CoreServices::getInstance()->getResourceManager()->addDirResource("Resources", false);	
-
-	Scene *scene = new Scene();
-	ScenePrimitive *ground = new ScenePrimitive(ScenePrimitive::TYPE_PLANE, 5,5);
-	ground->setMaterialByName("GroundMaterial");
-	scene->addEntity(ground);
-	
-	scene->getDefaultCamera()->setPosition(7,7,7);
-	scene->getDefaultCamera()->lookAt(Vector3(0,0,0));	
-	
-	Mesh *mesh = new Mesh(Mesh::QUAD_MESH);
-//	mesh->createBox(1, 1, 1);	
-	mesh->createTorus(0.3,0.2,10,10);
-
-	
-	SceneParticleEmitter *emitter = new SceneParticleEmitter(100,50,2);
-			
-	emitter->useScaleCurve = true;
-	emitter->scaleCurve.addControlPoint2d(0, 0.1);
-	emitter->scaleCurve.addControlPoint2d(0.5, 0.3);
-	emitter->scaleCurve.addControlPoint2d(1, 0);	
-	
-	scene->addEntity(emitter);	
-
-	SceneLight *light = new SceneLight(SceneLight::POINT_LIGHT, scene, 5);
-	light->setPosition(3,2,3);
-	light->setLightColor(1,0,0);
-	scene->addLight(light);
-
-	light = new SceneLight(SceneLight::POINT_LIGHT, scene, 5);
-	light->setPosition(-3,2,3);
-	light->setLightColor(0,1,0);
-	scene->addLight(light);
-
-	light = new SceneLight(SceneLight::POINT_LIGHT, scene, 5);
-	light->setPosition(-3,2,-3);
-	light->setLightColor(0,0,1);
-	scene->addLight(light);
-
-	light = new SceneLight(SceneLight::POINT_LIGHT, scene, 5);
-	light->setPosition(3,2,-3);
-	light->setLightColor(1,0,1);
-	scene->addLight(light);
-
-	light = new SceneLight(SceneLight::SPOT_LIGHT, scene, 4);
-	light->setPosition(0,2,2);
-	light->setSpotlightProperties(30,6);
-	light->setLightColor(1,1,0);
-	scene->addLight(light);
-	light->lookAt(Vector3(0,0,0));
-	light->enableShadows(true);
-		
-	light = new SceneLight(SceneLight::SPOT_LIGHT, scene, 4);
-	light->setPosition(0,2,-2);
-	light->setSpotlightProperties(30,6);
-	light->setLightColor(0,1,1);
-	scene->addLight(light);
-	light->lookAt(Vector3(0,0,0));
-	light->enableShadows(true);
-
-}
-
-HelloPolycodeApp::~HelloPolycodeApp() {
-}
-
-bool HelloPolycodeApp::Update() {
-    return core->updateAndRender();
-}

+ 0 - 14
Examples/C++/Contents/3DMeshParticles/HelloPolycodeApp.h

@@ -1,14 +0,0 @@
-#include <Polycode.h>
-#include "PolycodeView.h"
-
-using namespace Polycode;
-
-class HelloPolycodeApp {
-public:
-    HelloPolycodeApp(PolycodeView *view);
-    ~HelloPolycodeApp();
-    bool Update();
-    
-private:
-	Core *core;
-};

+ 0 - 69
Examples/C++/Contents/3DParticles/HelloPolycodeApp.cpp

@@ -1,69 +0,0 @@
-#include "HelloPolycodeApp.h"
-
-HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
-
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
-
-	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
-	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
-	CoreServices::getInstance()->getResourceManager()->addDirResource("Resources", false);	
-
-	Scene *scene = new Scene();
-	ScenePrimitive *ground = new ScenePrimitive(ScenePrimitive::TYPE_PLANE, 5,5);
-	ground->setMaterialByName("GroundMaterial");
-	scene->addEntity(ground);
-	
-	scene->getDefaultCamera()->setPosition(7,7,7);
-	scene->getDefaultCamera()->lookAt(Vector3(0,0,0));	
-	
-	SceneParticleEmitter *emitter = new SceneParticleEmitter(100,10,3);		
-
-	
-	emitter->useScaleCurve = true;
-	emitter->scaleCurve.addControlPoint2d(0, 0.1);
-	emitter->scaleCurve.addControlPoint2d(0.5, 0.3);
-	emitter->scaleCurve.addControlPoint2d(1, 0);	
-	
-	scene->addEntity(emitter);	
-
-	SceneLight *light = new SceneLight(SceneLight::POINT_LIGHT, scene, 5);
-	light->setPosition(3,2,3);
-	light->setLightColor(1,0,0);
-	scene->addLight(light);
-
-	light = new SceneLight(SceneLight::POINT_LIGHT, scene, 5);
-	light->setPosition(-3,2,3);
-	light->setLightColor(0,1,0);
-	scene->addLight(light);
-
-	light = new SceneLight(SceneLight::POINT_LIGHT, scene, 5);
-	light->setPosition(-3,2,-3);
-	light->setLightColor(0,0,1);
-	scene->addLight(light);
-
-	light = new SceneLight(SceneLight::POINT_LIGHT, scene, 5);
-	light->setPosition(3,2,-3);
-	light->setLightColor(1,0,1);
-	scene->addLight(light);
-
-	light = new SceneLight(SceneLight::SPOT_LIGHT, scene, 4);
-	light->setPosition(0,2,2);
-	light->setSpotlightProperties(30,6);
-	light->setLightColor(1,1,0);
-	scene->addLight(light);
-	light->lookAt(Vector3(0,0,0));
-	
-	light = new SceneLight(SceneLight::SPOT_LIGHT, scene, 4);
-	light->setPosition(0,2,-2);
-	light->setSpotlightProperties(30,6);
-	light->setLightColor(0,1,1);
-	scene->addLight(light);
-	light->lookAt(Vector3(0,0,0));
-}
-
-HelloPolycodeApp::~HelloPolycodeApp() {
-}
-
-bool HelloPolycodeApp::Update() {
-    return core->updateAndRender();
-}

+ 0 - 14
Examples/C++/Contents/3DParticles/HelloPolycodeApp.h

@@ -1,14 +0,0 @@
-#include <Polycode.h>
-#include "PolycodeView.h"
-
-using namespace Polycode;
-
-class HelloPolycodeApp {
-public:
-    HelloPolycodeApp(PolycodeView *view);
-    ~HelloPolycodeApp();
-    bool Update();
-    
-private:
-	Core *core;
-};

+ 1 - 1
Examples/C++/Contents/3DPhysics_Basic/HelloPolycodeApp.cpp

@@ -2,7 +2,7 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);

+ 11 - 9
Examples/C++/Contents/3DPhysics_Character/HelloPolycodeApp.cpp

@@ -2,19 +2,11 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
-	Scene *hud = new Scene(Scene::SCENE_2D);
-	onGroundLabel = new SceneLabel("Arrow keys to control, spacebar to jump, press R to reset", 16);
-	onGroundLabel->setPosition(-85,230);
-	hud->addChild(onGroundLabel);	
-	onGroundLabel = new SceneLabel("On Ground:", 16);
-	onGroundLabel->setPosition(-280,215);
-	hud->addChild(onGroundLabel);
-	
 
 	scene = new PhysicsScene();
 
@@ -46,6 +38,16 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	testBox->setPosition(2,1,-2);
 	scene->addCollisionChild(testBox, PhysicsSceneEntity::SHAPE_BOX);
 		
+	Scene *hud = new Scene(Scene::SCENE_2D_TOPLEFT);
+	onGroundLabel = new SceneLabel("Arrow keys to control, spacebar to jump, press R to reset", 16);
+    onGroundLabel->setAnchorPoint(-1.0, -1.0, 0.0);
+	onGroundLabel->setPosition(0,0);
+	hud->addChild(onGroundLabel);
+	onGroundLabel = new SceneLabel("On Ground:", 16);
+    onGroundLabel->setAnchorPoint(-1.0, -1.0, 0.0);
+	onGroundLabel->setPosition(0,32);
+	hud->addChild(onGroundLabel);
+    
 	
 	scene->getDefaultCamera()->setPosition(7,7,7);
 	scene->getDefaultCamera()->lookAt(Vector3(0,0,0));

+ 1 - 1
Examples/C++/Contents/3DPhysics_CollisionOnly/HelloPolycodeApp.cpp

@@ -2,7 +2,7 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);

+ 1 - 1
Examples/C++/Contents/3DPhysics_Contacts/HelloPolycodeApp.cpp

@@ -2,7 +2,7 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);

+ 4 - 4
Examples/C++/Contents/3DPhysics_RayTest/HelloPolycodeApp.cpp

@@ -2,7 +2,7 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90,0, true);
 
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
@@ -25,7 +25,7 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 
 	box = new ScenePrimitive(ScenePrimitive::TYPE_CONE, 1,1,10);
 	box->loadTexture("Resources/pink_texture.png");
-	box->setPosition(1,1,2);
+	box->setPosition(1,2,2);
 	scene->addCollisionChild(box, CollisionEntity::SHAPE_CONE);
 
 	box = new ScenePrimitive(ScenePrimitive::TYPE_CYLINDER, 2,0.5,10);
@@ -50,8 +50,8 @@ void HelloPolycodeApp::handleEvent(Event *e) {
 		InputEvent *inputEvent = (InputEvent*)e;
 		switch(e->getEventCode()) {
 			case InputEvent::EVENT_MOUSEDOWN:
-				Vector3 dir = CoreServices::getInstance()->getRenderer()->projectRayFrom2DCoordinate(inputEvent->mousePosition.x, inputEvent->mousePosition.y, CoreServices::getInstance()->getRenderer()->getCameraMatrix(), CoreServices::getInstance()->getRenderer()->getProjectionMatrix(),CoreServices::getInstance()->getRenderer()->getViewport());
-				RayTestResult res = scene->getFirstEntityInRay(scene->getDefaultCamera()->getPosition(), dir * 1000);				
+                Ray ray = scene->projectRayFromCameraAndViewportCoordinate(scene->getActiveCamera(), inputEvent->mousePosition);
+				RayTestResult res = scene->getFirstEntityInRay(ray.origin, ray.direction * 100.0);
 
 				if(lastEntity) {
 					lastEntity->setColor(1.0,1.0,1.0,1.0);

+ 1 - 7
Examples/C++/Contents/3DPhysics_Vehicle/HelloPolycodeApp.cpp

@@ -2,16 +2,10 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
-
-	Scene *hud = new Scene(Scene::SCENE_2D);
-	
-	onGroundLabel = new SceneLabel("Arrow keys to control, spacebar to brake, press R to reset car", 16);
-	onGroundLabel->setPosition(-70,230);
-	hud->addChild(onGroundLabel);	
 	
 	scene = new PhysicsScene();
 

+ 3 - 2
Examples/C++/Contents/BasicImage/HelloPolycodeApp.cpp

@@ -2,12 +2,13 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90, 1, true);
 
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
-	Scene *scene = new Scene(Scene::SCENE_2D);			
+	Scene *scene = new Scene(Scene::SCENE_2D);
+    scene->getActiveCamera()->setOrthoSize(640, 480);
 	SceneImage *image = new SceneImage("Resources/polycode_logo.png");
 	scene->addChild(image);	
 }

+ 0 - 34
Examples/C++/Contents/BasicLighting/HelloPolycodeApp.cpp

@@ -1,34 +0,0 @@
-#include "HelloPolycodeApp.h"
-
-HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
-
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
-
-	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
-	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
-	CoreServices::getInstance()->getResourceManager()->addDirResource("Resources", false);
-
-	Scene *scene = new Scene();
-	ScenePrimitive *ground = new ScenePrimitive(ScenePrimitive::TYPE_PLANE, 5,5);
-	ground->setMaterialByName("GroundMaterial");
-	scene->addEntity(ground);
-
-	ScenePrimitive *box = new ScenePrimitive(ScenePrimitive::TYPE_TORUS, 0.8,0.3,30,20);
-	box->setMaterialByName("CubeMaterial");
-	box->setPosition(0.0, 0.5, 0.0);
-	scene->addEntity(box);
-	
-	SceneLight *light = new SceneLight(SceneLight::POINT_LIGHT, scene, 5);
-	light->setPosition(1,2,1);
-	scene->addLight(light);
-
-	scene->getDefaultCamera()->setPosition(7,7,7);
-	scene->getDefaultCamera()->lookAt(Vector3(0,0,0));
-}
-
-HelloPolycodeApp::~HelloPolycodeApp() {
-}
-
-bool HelloPolycodeApp::Update() {
-    return core->updateAndRender();
-}

+ 0 - 14
Examples/C++/Contents/BasicLighting/HelloPolycodeApp.h

@@ -1,14 +0,0 @@
-#include <Polycode.h>
-#include "PolycodeView.h"
-
-using namespace Polycode;
-
-class HelloPolycodeApp : public EventHandler {
-public:
-    HelloPolycodeApp(PolycodeView *view);
-    ~HelloPolycodeApp();
-    bool Update();
-    
-private:
-	Core *core;
-};

+ 2 - 1
Examples/C++/Contents/BasicText/HelloPolycodeApp.cpp

@@ -2,12 +2,13 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90, 1, true);
 
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	Scene *scene = new Scene(Scene::SCENE_2D);
+    scene->getActiveCamera()->setOrthoSize(640, 480);
 	SceneLabel *label = new SceneLabel("Hello, Polycode!", 32);
 	scene->addChild(label);
 }

+ 3 - 2
Examples/C++/Contents/EventHandling/HelloPolycodeApp.cpp

@@ -2,7 +2,7 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 	  
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
@@ -10,7 +10,8 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 	rotateTimer = new Timer(true, 1000);
 	rotateTimer->addEventListener(this, Timer::EVENT_TRIGGER);
 
-	Scene *scene = new Scene(Scene::SCENE_2D);			
+	Scene *scene = new Scene(Scene::SCENE_2D);
+    scene->getActiveCamera()->setOrthoSize(640, 480);
 	image = new SceneImage("Resources/polycode_logo.png");
 	scene->addChild(image);	
 }

+ 3 - 2
Examples/C++/Contents/KeyboardInput/HelloPolycodeApp.cpp

@@ -2,12 +2,13 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
-	Scene *scene = new Scene(Scene::SCENE_2D);			
+	Scene *scene = new Scene(Scene::SCENE_2D);
+    scene->getDefaultCamera()->setOrthoSize(640, 480);
 	image = new SceneImage("Resources/polycode_logo.png");
 	scene->addChild(image);	
 	

+ 0 - 0
Examples/C++/Contents/AdvancedLighting/HelloPolycodeApp.cpp → Examples/C++/Contents/MaterialsAndLights/HelloPolycodeApp.cpp


+ 0 - 0
Examples/C++/Contents/2DTransforms/HelloPolycodeApp.h → Examples/C++/Contents/MaterialsAndLights/HelloPolycodeApp.h


+ 7 - 4
Examples/C++/Contents/MouseInput/HelloPolycodeApp.cpp

@@ -2,12 +2,13 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
-	Scene *scene = new Scene(Scene::SCENE_2D);			
+	scene = new Scene(Scene::SCENE_2D);
+    scene->getActiveCamera()->setOrthoSize(640,480);
 	image = new SceneImage("Resources/polycode_logo.png");
 	scene->addChild(image);	
 	
@@ -25,8 +26,10 @@ void HelloPolycodeApp::handleEvent(Event *e) {
 		InputEvent *inputEvent = (InputEvent*)e;
 		switch(e->getEventCode()) {
 			case InputEvent::EVENT_MOUSEMOVE:
-				image->setPosition(inputEvent->mousePosition.x-680/2+20,
-						-inputEvent->mousePosition.y+480/2);
+            {
+                Ray ray =scene->projectRayFromCameraAndViewportCoordinate(scene->getActiveCamera(), inputEvent->getMousePosition());
+                image->setPosition(ray.origin.x, ray.origin.y);
+            }
 			break;
 			case InputEvent::EVENT_MOUSEDOWN:
 				image->setColor(1,0,0,1);

+ 1 - 0
Examples/C++/Contents/MouseInput/HelloPolycodeApp.h

@@ -13,6 +13,7 @@ public:
     
 private:
 
+    Scene *scene;
 	SceneImage *image;
     Core *core;
 };

+ 0 - 148
Examples/C++/Contents/Networking_Client/HelloPolycodeApp.cpp

@@ -1,148 +0,0 @@
-#include "HelloPolycodeApp.h"
-		
-HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
-
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
-
-	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
-	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
-
-	gameScene = new Scene(Scene::SCENE_2D);	
-
-	Scene *hudScene = new Scene(Scene::SCENE_2D);
-	SceneLabel *label = new SceneLabel("Example client.  Press escape to exit.", 16);
-	hudScene->addChild(label);
-	
-	motdLabel =  new SceneLabel("", 16);
-	motdLabel->setPosition(0, -480/2+20);
-	hudScene->addChild(motdLabel);
-		
-	client = new Client(6543, 50);
-	client->setPersistentData(&clientData, sizeof(ClientData));
-	
-	client->addEventListener(this, ClientEvent::EVENT_CLIENT_READY);
-	client->addEventListener(this, ClientEvent::EVENT_SERVER_DATA);	
-	client->addEventListener(this, ClientEvent::EVENT_SERVER_DISCONNECTED);		
-	
-	core->getInput()->addEventListener(this, InputEvent::EVENT_KEYDOWN);
-	core->getInput()->addEventListener(this, InputEvent::EVENT_KEYUP);
-	
-	client->Connect("127.0.0.1", 52345);
-	state = 0;
-}	
-
-HelloPolycodeApp::~HelloPolycodeApp() {
-}
-
-void HelloPolycodeApp::createClientPlayer(int clientID) {
-	ClientPlayer *player = new ClientPlayer();
-	player->clientID = clientID;
-	
-	SceneEntity *playerEntity = new SceneEntity();				
-	ScenePrimitive *playerBody = new ScenePrimitive(ScenePrimitive::TYPE_CIRCLE, 30,30,3);				
-	playerBody->setRoll(-90.0);	
-	playerEntity->addChild(playerBody);
-	gameScene->addChild(playerEntity);
-	player->playerEntity = playerEntity;												
-	
-	player->state = 0;
-	players.push_back(player);						
-}
-
-void HelloPolycodeApp::handleEvent(Event *event) {
-
-	if(event->getDispatcher() == core->getInput()) {
-		InputEvent *inputEvent = (InputEvent*)event;		
-		switch(event->getEventCode()) {
-			case InputEvent::EVENT_KEYDOWN:
-				switch (inputEvent->keyCode()) {
-					case KEY_ESCAPE:
-						client->Disconnect();
-					break;
-					case KEY_UP:
-						clientData.thrusting = 1;
-					break;				
-					case KEY_LEFT:
-						clientData.turning_state = TURNING_LEFT;
-					break;
-					case KEY_RIGHT:
-						clientData.turning_state = TURNING_RIGHT;
-					break;
-				}
-			break;
-			case InputEvent::EVENT_KEYUP:
-				switch (inputEvent->key) {
-					case KEY_UP:
-						clientData.thrusting = 0;						
-					break;				
-					case KEY_LEFT:
-					case KEY_RIGHT:
-						clientData.turning_state = NOT_TURNING;
-					break;					
-				}
-			break;			
-		}
-		
-	}
-
-	if(event->getDispatcher() == client) {
-		ClientEvent *clientEvent = (ClientEvent*) event;
-		
-		switch(clientEvent->getEventCode()) {
-			case ClientEvent::EVENT_CLIENT_READY:
-				Logger::log("Connected to server with client ID: %d!\n", client->getClientID());
-			break;
-			case ClientEvent::EVENT_SERVER_DISCONNECTED:
-				core->Shutdown();
-			break;
-			case ClientEvent::EVENT_SERVER_DATA:
-			{
-				switch(clientEvent->dataType) {
-					case PACKET_TYPE_SERVER_DATA:
-					{
-						ServerState *serverState = (ServerState*) clientEvent->data;
-						for(int i=0; i < players.size(); i++) {
-							ClientPlayer *clientPlayer = players[i];
-							for(int j=0; j < MAX_PLAYERS; j++) {
-								if(clientPlayer->clientID == serverState->players[j].clientID && serverState->players[j].state != 0) {
-									clientPlayer->playerEntity->setPosition(serverState->players[j].posX, serverState->players[j].posY);
-									clientPlayer->playerEntity->setRoll(serverState->players[j].angle);								
-								}
-							}							
-						}
-					}
-					break;
-					case PLAYER_JOIN:
-					{
-						ServerClientInfo *newClientInfo = (ServerClientInfo*) clientEvent->data;
-						createClientPlayer(newClientInfo->clientID);
-					}
-					break;
-					case SERVER_INFO:
-					{
-						ServerInfo *info = (ServerInfo*) clientEvent->data;
-						motdLabel->setText(info->motd);
-						ServerState *serverState = &info->initialServerState;
-												
-						// create initial players
-						for(int j=0; j < MAX_PLAYERS; j++) {
-							if(serverState->players[j].state != 0) {
-								createClientPlayer(serverState->players[j].clientID);
-							}
-						}							
-						
-						
-						client->sendReliableDataToServer(NULL, 0, CLIENT_READY);
-					}
-					break;
-				}
-			}
-			break;
-		}
-	}
-}
-
-bool HelloPolycodeApp::Update() {
-
-    return core->updateAndRender();
-}

+ 0 - 33
Examples/C++/Contents/Networking_Client/HelloPolycodeApp.h

@@ -1,33 +0,0 @@
-#include <Polycode.h>
-#include "PolycodeView.h"
-#include "NetworkingExampleGlobals.h"
-
-using namespace Polycode;
-
-class ClientPlayer {
-	public:
-		int clientID;
-		char state;
-		SceneEntity *playerEntity;
-};
-
-class HelloPolycodeApp : public EventHandler {
-public:
-    HelloPolycodeApp(PolycodeView *view);
-    ~HelloPolycodeApp();
-    bool Update();
-	
-	void createClientPlayer(int clientID);
-	void handleEvent(Event *event);
-    
-private:
-	Core *core;
-	Scene *gameScene;
-	Client *client;
-	ClientData clientData;
-	char state;
-	
-	SceneLabel *motdLabel;	
-	
-	vector<ClientPlayer*> players;
-};

+ 0 - 36
Examples/C++/Contents/Networking_Client/NetworkingExampleGlobals.h

@@ -1,36 +0,0 @@
-#pragma once
-
-#define MAX_PLAYERS 4
-
-#define PLAYER_SHOOT 32
-
-#define SERVER_INFO 42
-#define CLIENT_READY 43
-#define PLAYER_JOIN 44
-
-typedef struct {
-	float posX;
-	float posY;
-	float angle;
-	char state;
-	int clientID;	
-}ServerClientInfo;
-
-#define NOT_TURNING 0
-#define TURNING_LEFT 1
-#define TURNING_RIGHT 2
-
-typedef struct {
-	char thrusting;
-	char turning_state;
-} ClientData;
-
-typedef struct {
-	ServerClientInfo players[MAX_PLAYERS];
-} ServerState;
-
-typedef struct {
-	char motd[256];
-	ServerState initialServerState;
-} ServerInfo;
-

+ 0 - 158
Examples/C++/Contents/Networking_Server/HelloPolycodeApp.cpp

@@ -1,158 +0,0 @@
-#include "HelloPolycodeApp.h"
-		
-HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : ServerWorld(), EventHandler() {
-
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
-
-	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
-	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
-
-	memset(serverInfo.motd, 0, 256);
-	strcat(serverInfo.motd, "MOTD : ** Welcome to the Network Example server! **");
-
-	gameScene = new Scene(Scene::SCENE_2D);	
-
-	Scene *hudScene = new Scene(Scene::SCENE_2D);
-	infoLabel = new SceneLabel("Example server. [0 Players]", 32);
-	hudScene->addChild(infoLabel);
-	
-	server = new Server(52345, 50, this);
-	
-	server->addEventListener(this, ServerEvent::EVENT_CLIENT_CONNECTED);
-	server->addEventListener(this, ServerEvent::EVENT_CLIENT_DISCONNECTED);		
-}
-
-HelloPolycodeApp::~HelloPolycodeApp() {
-}
-
-void HelloPolycodeApp::updateWorld(Number elapsed) {
-
-	
-	for(int i=0; i < players.size(); i++)  {	
-		Player *player = players[i];
-		
-		// handle input flags
-		if(player->thrusting == 1) {
-			player->moveSpeed = 80;
-		} else {
-			player->moveSpeed = 0;
-		}
-		switch(player->turning_state) {
-			case NOT_TURNING:
-				player->rotateSpeed = 0;
-			break;			
-			case TURNING_LEFT:
-				player->rotateSpeed = 100;			
-			break;
-			case TURNING_RIGHT:
-				player->rotateSpeed = -100;			
-			break;
-			
-		}
-		
-		// process movement	
-		player->angle += player->rotateSpeed * elapsed;
-		player->position.x += sin(player->angle * PI/180.0) * player->moveSpeed * elapsed;
-		player->position.y += -cos(player->angle * PI/180.0) * player->moveSpeed * elapsed;
-	
-		// update the server display
-		player->playerEntity->setPosition(player->position.x, player->position.y);
-		player->playerEntity->setRoll(player->angle);
-
-										
-	}
-	
-	// set the server state
-	for(int i=0; i < MAX_PLAYERS; i++)  {
-		if(i < players.size()) {
-			serverState.players[i] = players[i]->getClientInfo();
-		} else {
-			serverState.players[i].state = 0;
-		}
-	}
-}
-
-void HelloPolycodeApp::getWorldState(ServerClient *client, char **worldData,unsigned int *worldDataSize) {
-	*worldData = (char*)&serverState;
-	*worldDataSize = sizeof(ServerState);	
-}
-
-void HelloPolycodeApp::handleEvent(Event *event) {
-
-	for(int i=0; i < players.size(); i++) {
-		if(event->getDispatcher() == players[i]->client) {		
-			ServerClientEvent *clientEvent = (ServerClientEvent*) event;
-			Player *player = players[i];
-			switch(clientEvent->getEventCode()) {
-				case ServerClientEvent::EVENT_CLIENT_DATA:				
-					switch(clientEvent->dataType) {
-						case CLIENT_READY:
-						{
-							ServerClientInfo info = player->getClientInfo();
-							server->sendReliableDataToAllClients((char*)&info, sizeof(ServerClientInfo), PLAYER_JOIN);
-						}
-						break;					
-						case PLAYER_SHOOT:
-						{
-						
-						}	
-						break;
-						case PACKET_TYPE_CLIENT_DATA:
-							ClientData *clientData = (ClientData*) clientEvent->data;
-							player->turning_state = clientData->turning_state;
-							player->thrusting = clientData->thrusting;
-						break;
-					}
-				break;
-			}
-		}
-	}
-
-	if(event->getDispatcher() == server) {
-		ServerEvent *serverEvent = (ServerEvent*) event;
-		switch(serverEvent->getEventCode()) {
-		
-			case ServerEvent::EVENT_CLIENT_DISCONNECTED:		
-			{
-				for(int i=0;i<players.size();i++) {
-					if(players[i]->client == serverEvent->client) {			
-						Player *player = players[i];
-						players.erase(players.begin()+i);						
-						
-						gameScene->removeEntity(player->playerEntity);
-						delete player->playerEntity;
-						delete player;
-					}
-				}
-			}	
-			break;
-			
-			case ServerEvent::EVENT_CLIENT_CONNECTED:
-			{
-				Player *newPlayer = new Player();
-				newPlayer->position.x = 640/2;
-				newPlayer->position.y = 480/2;				
-				newPlayer->client = serverEvent->client;												
-				newPlayer->client->addEventListener(this, ServerClientEvent::EVENT_CLIENT_DATA);					
-				SceneEntity *playerEntity = new SceneEntity();				
-				ScenePrimitive *playerBody = new ScenePrimitive(ScenePrimitive::TYPE_CIRCLE, 30,30,3);				
-				playerBody->setRoll(-90.0);
-				playerEntity->addChild(playerBody);
-				gameScene->addChild(playerEntity);
-				newPlayer->playerEntity = playerEntity;												
-				players.push_back(newPlayer);
-				printf("Player connected\n");
-				serverInfo.initialServerState = serverState;
-				server->sendReliableDataToClient(newPlayer->client, (char*) &serverInfo, sizeof(ServerInfo), SERVER_INFO);
-			}
-			break;
-		}
-		
-	}
-}
-
-bool HelloPolycodeApp::Update() {
-	updateWorld(core->getElapsed());
-	infoLabel->setText("Example server. ["+String::IntToString(players.size())+" Players]");
-    return core->updateAndRender();
-}

+ 0 - 51
Examples/C++/Contents/Networking_Server/HelloPolycodeApp.h

@@ -1,51 +0,0 @@
-#include <Polycode.h>
-#include "PolycodeView.h"
-#include "NetworkingExampleGlobals.h"
-
-using namespace Polycode;
-
-class Player {
-	public:		
-		Vector2 position;
-		Number angle;
-		SceneEntity *playerEntity;
-		ServerClient *client;
-		char turning_state;
-		char thrusting;
-		Number moveSpeed;
-		Number rotateSpeed;		
-		
-		ServerClientInfo getClientInfo() {
-			ServerClientInfo info;
-			info.clientID = client->clientID;
-			info.state = 1;
-			info.posX = position.x;
-			info.posY = position.y;
-			info.angle = angle;
-			return info;
-		}							
-			
-};	
-
-class HelloPolycodeApp : public ServerWorld, EventHandler {
-public:
-    HelloPolycodeApp(PolycodeView *view);
-    ~HelloPolycodeApp();
-	
-	void updateWorld(Number elapsed);
-	void getWorldState(ServerClient *client, char **worldData,unsigned int *worldDataSize);				
-	
-    bool Update();
-	
-	void handleEvent(Event *event);
-    
-private:
-	Core *core;
-	Scene *gameScene;
-	SceneLabel *infoLabel;
-	Server *server;
-	vector<Player*> players;
-	ServerState serverState;
-	
-	ServerInfo serverInfo;
-};

+ 0 - 36
Examples/C++/Contents/Networking_Server/NetworkingExampleGlobals.h

@@ -1,36 +0,0 @@
-#pragma once
-
-#define MAX_PLAYERS 4
-
-#define PLAYER_SHOOT 32
-
-#define SERVER_INFO 42
-#define CLIENT_READY 43
-#define PLAYER_JOIN 44
-
-typedef struct {
-	float posX;
-	float posY;
-	float angle;
-	char state;
-	int clientID;	
-}ServerClientInfo;
-
-#define NOT_TURNING 0
-#define TURNING_LEFT 1
-#define TURNING_RIGHT 2
-
-typedef struct {
-	char thrusting;
-	char turning_state;
-} ClientData;
-
-typedef struct {
-	ServerClientInfo players[MAX_PLAYERS];
-} ServerState;
-
-typedef struct {
-	char motd[256];
-	ServerState initialServerState;
-} ServerInfo;
-

+ 12 - 4
Examples/C++/Contents/2DParticles/HelloPolycodeApp.cpp → Examples/C++/Contents/ParticleSystems/HelloPolycodeApp.cpp

@@ -2,14 +2,16 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 	
-	Scene *scene = new Scene();	
-	SceneParticleEmitter *emitter = new SceneParticleEmitter(100,50,3);
+	Scene *scene = new Scene(Scene::SCENE_2D);
+	SceneParticleEmitter *emitter = new SceneParticleEmitter(100,2.0,0.5);
 	
+    emitter->setParticleRotationSpeed(Vector3(0.0, 0.0, 100.0));
+    
 	emitter->useScaleCurve = true;
 	emitter->scaleCurve.clearControlPoints();
 	emitter->scaleCurve.addControlPoint2d(0, 0.3);
@@ -42,8 +44,14 @@ HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 	emitter->colorCurveA.addControlPoint2d(0.05, 1);
 	emitter->colorCurveA.addControlPoint2d(0.6, 1);
 	emitter->colorCurveA.addControlPoint2d(1, 0);
+    
+    emitter->setPosition(0.0, -0.4, 0.0);
+    
+    emitter->setMaterialByName("UnlitAdditive");
+    
+    Texture *tex = CoreServices::getInstance()->getMaterialManager()->createTextureFromFile("Resources/particle.png");
+    emitter->getLocalShaderOptions()->addTexture("diffuse", tex);
 
-	emitter->setPosition(640/2, 400);
 	scene->addChild(emitter);
 }
 

+ 0 - 0
Examples/C++/Contents/2DParticles/HelloPolycodeApp.h → Examples/C++/Contents/ParticleSystems/HelloPolycodeApp.h


+ 5 - 7
Examples/C++/Contents/3DAudio/HelloPolycodeApp.cpp → Examples/C++/Contents/PositionalSounds/HelloPolycodeApp.cpp

@@ -2,24 +2,22 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 	
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);	
 
 	Scene *scene = new Scene();
 	
-	sourceEntity = new SceneEntity();
+	sourceEntity = new Entity();
+    
 	SceneSound *testSound = new SceneSound("Resources/test.wav", 20, 50);
 	testSound->getSound()->Play(true);
 	sourceEntity->addChild(testSound);
+    
 	ScenePrimitive *soundShape = new ScenePrimitive(ScenePrimitive::TYPE_BOX, 1,1,1);
-	soundShape->setMaterialByName("Default");
 	sourceEntity->addChild(soundShape);	
-	scene->addEntity(sourceEntity);
-	
-	SceneLight *light = new SceneLight(SceneLight::POINT_LIGHT, scene, 1000);
-	scene->addLight(light);
+	scene->addEntity(sourceEntity);	
 
 	SceneSoundListener *soundListener = new SceneSoundListener();
 	scene->addEntity(soundListener);

+ 0 - 0
Examples/C++/Contents/3DAudio/HelloPolycodeApp.h → Examples/C++/Contents/PositionalSounds/HelloPolycodeApp.h


+ 10 - 10
Examples/C++/Contents/SceneEntities/HelloPolycodeApp.cpp

@@ -2,25 +2,25 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
-	Scene *scene = new Scene(Scene::SCENE_2D);			
-	sun = new ScenePrimitive(ScenePrimitive::TYPE_CIRCLE, 100,100, 30);
+	Scene *scene = new Scene(Scene::SCENE_2D);
+	sun = new ScenePrimitive(ScenePrimitive::TYPE_CIRCLE, 0.2,0.2, 30);
 	sun->setColor(0.9, 0.8, 0, 1); 
 	sun->colorAffectsChildren = false;		
 	scene->addChild(sun);
 	
-	planet = new ScenePrimitive(ScenePrimitive::TYPE_CIRCLE, 50,50, 30);
-	planet->setPosition(150,0);
+	planet = new ScenePrimitive(ScenePrimitive::TYPE_CIRCLE, 0.1,0.1, 30);
+	planet->setPosition(0.3,0);
 	planet->setColor(0.2, 0.8, 0, 1); 
 	planet->colorAffectsChildren = false;
 	sun->addChild(planet);
 
-	moon = new ScenePrimitive(ScenePrimitive::TYPE_CIRCLE, 20,20, 30);
-	moon->setPosition(50,0);
+	moon = new ScenePrimitive(ScenePrimitive::TYPE_CIRCLE, 0.05, 0.05, 30);
+	moon->setPosition(0.1,0);
 	moon->setColor(1, 1, 0.6, 1);
 	planet->addChild(moon);
 	
@@ -35,9 +35,9 @@ HelloPolycodeApp::~HelloPolycodeApp() {
 bool HelloPolycodeApp::Update() {
 	Number elapsed = core->getElapsed();
 	planetRoll += elapsed ;
-	moonRoll += elapsed * 6;	
-	planet->setPosition(cosf(planetRoll)*150, sinf(planetRoll)*150);
-	moon->setPosition(cosf(moonRoll)*50, sinf(moonRoll)*50);
+	moonRoll += elapsed * 6.0;
+	planet->setPosition(cosf(planetRoll)*0.3, sinf(planetRoll)*0.3);
+	moon->setPosition(cosf(moonRoll)*0.1, sinf(moonRoll)*0.1);
 		
     return core->updateAndRender();
 }

+ 6 - 3
Examples/C++/Contents/SceneSprites/HelloPolycodeApp.cpp

@@ -2,17 +2,20 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
 	CoreServices::getInstance()->getRenderer()->setTextureFilteringMode(Renderer::TEX_FILTERING_NEAREST);
+    
 	Scene *scene = new Scene(Scene::SCENE_2D);
+    scene->getActiveCamera()->setOrthoSize(640, 480);
+    
 	SceneSprite *sprite = new SceneSprite("Resources/sprite_sheet.png", 93, 78);
-	sprite->setScale(7,7);
+	sprite->setScale(6,6);
 	scene->addChild(sprite);
-	sprite->addAnimation("ExampleAnimation", "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,29,29,29,29,29,29,29,29,29", 0.03);
+	sprite->addAnimation("ExampleAnimation", "0-29,29x6", 0.03);
 	sprite->playAnimation("ExampleAnimation", 0, false);
 }
 

+ 18 - 12
Examples/C++/Contents/SkeletalAnimation/HelloPolycodeApp.cpp

@@ -2,29 +2,35 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
-	CoreServices::getInstance()->getRenderer()->setTextureFilteringMode(Renderer::TEX_FILTERING_NEAREST);
-
 	Scene *scene = new Scene();
-	SceneMesh *mesh = new SceneMesh("Resources/ninja.mesh");
-	mesh->loadTexture("Resources/ninja.png");
+	mesh = new SceneMesh("Resources/dummy.mesh");
+	mesh->loadTexture("Resources/dummy.png");
 	scene->addEntity(mesh);
-	mesh->loadSkeleton("Resources/ninja.skeleton");
-	mesh->getSkeleton()->addAnimation("Run", "Resources/run.anim");
-	mesh->getSkeleton()->playAnimationByName("Run");
-
-	scene->getDefaultCamera()->setPosition(25,25,25);
-	scene->getDefaultCamera()->lookAt(Vector3(0,0,0));	
-
+    
+	mesh->loadSkeleton("Resources/dummy.skeleton");
+	mesh->getSkeleton()->addAnimation("idle", "Resources/idle.anim");
+	mesh->getSkeleton()->addAnimation("run", "Resources/run.anim");
+	mesh->getSkeleton()->setBaseAnimationByName("idle");
+    
+	scene->getDefaultCamera()->setPosition(5,5,5);
+	scene->getDefaultCamera()->lookAt(Vector3(0,1.0,0));
+
+    blendSinVal = 0.0;
 }
 
 HelloPolycodeApp::~HelloPolycodeApp() {
 }
 
 bool HelloPolycodeApp::Update() {
+    
+    blendSinVal += core->getElapsed() * 0.5;
+    
+    mesh->getSkeleton()->playAnimationByName("run", fabs(sin(blendSinVal)));
+    
     return core->updateAndRender();
 }

+ 3 - 0
Examples/C++/Contents/SkeletalAnimation/HelloPolycodeApp.h

@@ -10,5 +10,8 @@ public:
     bool Update();
     
 private:
+    
+    Number blendSinVal;
+    SceneMesh *mesh;
 	Core *core;
 };

+ 4 - 3
Examples/C++/Contents/2DTransforms/HelloPolycodeApp.cpp → Examples/C++/Contents/Transforms/HelloPolycodeApp.cpp

@@ -2,16 +2,17 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90, 1, true);
 
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
-	Scene *scene = new Scene(Scene::SCENE_2D_TOPLEFT);			
+	Scene *scene = new Scene(Scene::SCENE_2D);
+    scene->getActiveCamera()->setOrthoSize(640, 480);
 	for(Number i=0; i < 10; i++) {
 		SceneImage *image = new SceneImage("Resources/polycode_logo.png");
 		scene->addChild(image);	
-		image->setPosition(160+(42*i), 230);
+		image->setPosition((30*i), 0);
 		image->setRoll(45*i);
 		image->setScale(1.0-(0.1*i),1.0-(0.1*i));
 	}

+ 0 - 0
Examples/C++/Contents/AdvancedLighting/HelloPolycodeApp.h → Examples/C++/Contents/Transforms/HelloPolycodeApp.h


+ 3 - 2
Examples/C++/Contents/UpdateLoop/HelloPolycodeApp.cpp

@@ -2,12 +2,13 @@
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) {
 
-	core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
+	core = new POLYCODE_CORE(view, 640,480,false,true,0,0,90, 0, true);
 	  
 	CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 
-	Scene *scene = new Scene(Scene::SCENE_2D);			
+	Scene *scene = new Scene(Scene::SCENE_2D);
+    scene->getDefaultCamera()->setOrthoSize(640,480);
 	image = new SceneImage("Resources/polycode_logo.png");
 	scene->addChild(image);	
 }

BIN
Examples/C++/Resources/default.pak


BIN
Examples/C++/Resources/dummy.mesh


BIN
Examples/C++/Resources/dummy.png


BIN
Examples/C++/Resources/dummy.skeleton


BIN
Examples/C++/Resources/idle.anim


BIN
Examples/C++/Resources/ninja.mesh


BIN
Examples/C++/Resources/ninja.png


BIN
Examples/C++/Resources/ninja.skeleton


BIN
Examples/C++/Resources/particle.png


BIN
Examples/C++/Resources/run.anim


Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio