Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed Linux sample06-racer.

Change Animation keyTimes from ulong[] to uint[].
Added codeblocks ide  environment for Linux.
  • Loading branch information...
commit d1cc8887bfceef5f2e2424905d05b9f899ee84fe 1 parent 94272d0
@seanpaultaylor seanpaultaylor authored
Showing with 2,392 additions and 1,049 deletions.
  1. +45 −37 .gitignore
  2. 0  {build → cmake}/README.md
  3. +1 −1  gameplay-encoder/gameplay-bundle.txt
  4. +1 −1  gameplay-samples/BuildHelpers.CMakeLists.txt
  5. +1 −0  gameplay-samples/CMakeLists.txt
  6. +85 −0 gameplay-samples/sample00-mesh/sample00-mesh.cbp
  7. +85 −0 gameplay-samples/sample01-longboard/sample01-longboard.cbp
  8. +85 −0 gameplay-samples/sample02-spaceship/sample02-spaceship.cbp
  9. +86 −0 gameplay-samples/sample03-character/sample03-character.cbp
  10. +85 −0 gameplay-samples/sample04-particles/sample04-particles.cbp
  11. +85 −0 gameplay-samples/sample05-lua/sample05-lua.cbp
  12. +86 −0 gameplay-samples/sample06-racer/sample06-racer.cbp
  13. BIN  gameplay-tests/Default-568h@2x.png
  14. +115 −0 gameplay-tests/gameplay-tests.cbp
  15. +30 −0 gameplay.workspace
  16. +591 −0 gameplay/gameplay.cbp
  17. +20 −19 gameplay/src/Animation.cpp
  18. +29 −29 gameplay/src/Animation.h
  19. +25 −25 gameplay/src/AnimationTarget.cpp
  20. +23 −23 gameplay/src/AnimationTarget.h
  21. +16 −16 gameplay/src/Bundle.cpp
  22. +11 −11 gameplay/src/Game.cpp
  23. +8 −8 gameplay/src/lua/lua_AnimationTarget.cpp
  24. +57 −57 gameplay/src/lua/lua_Button.cpp
  25. +59 −59 gameplay/src/lua/lua_CheckBox.cpp
  26. +62 −62 gameplay/src/lua/lua_Container.cpp
  27. +56 −56 gameplay/src/lua/lua_Control.cpp
  28. +65 −65 gameplay/src/lua/lua_Form.cpp
  29. +90 −90 gameplay/src/lua/lua_Joint.cpp
  30. +59 −59 gameplay/src/lua/lua_Joystick.cpp
  31. +57 −57 gameplay/src/lua/lua_Label.cpp
  32. +32 −32 gameplay/src/lua/lua_MaterialParameter.cpp
  33. +90 −90 gameplay/src/lua/lua_Node.cpp
  34. +60 −60 gameplay/src/lua/lua_RadioButton.cpp
  35. +61 −61 gameplay/src/lua/lua_Slider.cpp
  36. +57 −57 gameplay/src/lua/lua_TextBox.cpp
  37. +74 −74 gameplay/src/lua/lua_Transform.cpp
View
82 .gitignore
@@ -18,6 +18,18 @@ Thumbs.db
/Device-Profile
/Device-Release
/build
+/gameplay-internal
+/gameplay-api/xml
+
+/gameplay-encoder/Debug
+/gameplay-encoder/Release
+/gameplay-encoder/gameplay-encoder.xcodeproj/xcuserdata
+
+/gameplay-luagen/Release
+/gameplay-luagen/Debug
+/gameplay-luagen/doxygen_entrydb_680.tmp
+/gameplay-luagen/doxygen_objdb_680.tmp
+/gameplay-luagen/xml
/gameplay/Debug
/gameplay/DebugMem
@@ -33,21 +45,36 @@ Thumbs.db
/gameplay/gameplay.xcodeproj/xcuserdata
/gameplay/android/NUL
/gameplay/android/proguard.cfg
+/gameplay/android/proguard-project.txt
/gameplay/android/local.properties
/gameplay/android/project.properties
/gameplay/android/obj
+/gameplay/linux
-/gameplay-api/xml
-
-/gameplay-encoder/Debug
-/gameplay-encoder/Release
-/gameplay-encoder/gameplay-encoder.xcodeproj/xcuserdata
-
-/gameplay-luagen/Release
-/gameplay-luagen/Debug
-/gameplay-luagen/doxygen_entrydb_680.tmp
-/gameplay-luagen/doxygen_objdb_680.tmp
-/gameplay-luagen/xml
+/gameplay-tests/Debug
+/gameplay-tests/DebugMem
+/gameplay-tests/Release
+/gameplay-tests/Simulator
+/gameplay-tests/Simulator-Coverage
+/gameplay-tests/Simulator-Profile
+/gameplay-tests/Device-Debug
+/gameplay-tests/Device-Coverage
+/gameplay-tests/Device-Profile
+/gameplay-tests/Device-Release
+/gameplay-tests/res/shaders
+/gameplay-tests/res/logo_powered_white.png
+/gameplay-tests/gameplay-tests.xcodeproj/xcuserdata
+/gameplay-tests/android/src
+/gameplay-tests/android/assets
+/gameplay-tests/android/bin
+/gameplay-tests/android/gen
+/gameplay-tests/android/libs
+/gameplay-tests/android/obj
+/gameplay-tests/android/NUL
+/gameplay-tests/android/local.properties
+/gameplay-tests/android/proguard-project.txt
+/gameplay-tests/android/project.properties
+/gameplay-tests/linux
/gameplay-samples/sample00-mesh/Debug
/gameplay-samples/sample00-mesh/DebugMem
@@ -72,6 +99,7 @@ Thumbs.db
/gameplay-samples/sample00-mesh/android/local.properties
/gameplay-samples/sample00-mesh/android/proguard.cfg
/gameplay-samples/sample00-mesh/android/project.properties
+/gameplay-samples/sample00-mesh/linux
/gameplay-samples/sample01-longboard/Debug
/gameplay-samples/sample01-longboard/DebugMem
@@ -97,6 +125,7 @@ Thumbs.db
/gameplay-samples/sample01-longboard/android/proguard.cfg
/gameplay-samples/sample01-longboard/android/project.properties
/gameplay-samples/sample01-longboard/android/local.properties
+/gameplay-samples/sample01-longboard/linux
/gameplay-samples/sample02-spaceship/Debug
/gameplay-samples/sample02-spaceship/DebugMem
@@ -121,6 +150,7 @@ Thumbs.db
/gameplay-samples/sample02-spaceship/android/src
/gameplay-samples/sample02-spaceship/android/proguard.cfg
/gameplay-samples/sample02-spaceship/android/local.properties
+/gameplay-samples/sample02-spaceship/linux
/gameplay-samples/sample03-character/Debug
/gameplay-samples/sample03-character/DebugMem
@@ -147,6 +177,7 @@ Thumbs.db
/gameplay-samples/sample03-character/android/obj
/gameplay-samples/sample03-character/android/NUL
/gameplay-samples/sample03-character/res/gamepad.xcf
+/gameplay-samples/sample03-character/linux
/gameplay-samples/sample04-particles/Debug
/gameplay-samples/sample04-particles/DebugMem
@@ -173,6 +204,7 @@ Thumbs.db
/gameplay-samples/sample04-particles/android/proguard.cfg
/gameplay-samples/sample04-particles/android/local.properties
/gameplay-samples/sample04-particles/android/project.properties
+/gameplay-samples/sample04-particles/linux
/gameplay-samples/sample05-lua/Debug
/gameplay-samples/sample05-lua/DebugMem
@@ -197,6 +229,7 @@ Thumbs.db
/gameplay-samples/sample05-lua/android/local.properties
/gameplay-samples/sample05-lua/android/proguard.cfg
/gameplay-samples/sample05-lua/android/project.properties
+/gameplay-samples/sample05-lua/linux
/gameplay-samples/sample06-racer/Debug
/gameplay-samples/sample06-racer/DebugMem
@@ -226,31 +259,6 @@ Thumbs.db
/gameplay-samples/sample06-racer/android/local.properties
/gameplay-samples/sample06-racer/android/proguard.cfg
/gameplay-samples/sample06-racer/android/project.properties
+/gameplay-samples/sample06-racer/linux
-/gameplay-internal
-/gameplay/android/proguard-project.txt
-
-/gameplay-tests/Debug
-/gameplay-tests/DebugMem
-/gameplay-tests/Release
-/gameplay-tests/Simulator
-/gameplay-tests/Simulator-Coverage
-/gameplay-tests/Simulator-Profile
-/gameplay-tests/Device-Debug
-/gameplay-tests/Device-Coverage
-/gameplay-tests/Device-Profile
-/gameplay-tests/Device-Release
-/gameplay-tests/res/shaders
-/gameplay-tests/res/logo_powered_white.png
-/gameplay-tests/gameplay-tests.xcodeproj/xcuserdata
-/gameplay-tests/android/src
-/gameplay-tests/android/assets
-/gameplay-tests/android/bin
-/gameplay-tests/android/gen
-/gameplay-tests/android/libs
-/gameplay-tests/android/obj
-/gameplay-tests/android/NUL
-/gameplay-tests/android/local.properties
-/gameplay-tests/android/proguard-project.txt
-/gameplay-tests/android/project.properties
View
0  build/README.md → cmake/README.md
File renamed without changes
View
2  gameplay-encoder/gameplay-bundle.txt
@@ -153,7 +153,7 @@ Reference
5->AnimationChannel
targetId string
targetAttribute uint
- keyTimes unsigned long[] (milliseconds)
+ keyTimes uint[] (milliseconds)
values float[]
tangents_in float[]
tangents_out float[]
View
2  gameplay-samples/BuildHelpers.CMakeLists.txt
@@ -22,7 +22,7 @@ endmacro()
# convenience to call above with current directory and everything in "res"
macro(COPY_RES GAME_NAME)
- # a target for all addition asserts (will be done in defualt compile, but if you target the executable
+ # a target for all addition asserts (will be done in default compile, but if you target the executable
# it won't be done -- good for testing)
add_custom_target( ${GAME_NAME}_ASSETS ALL )
View
1  gameplay-samples/CMakeLists.txt
@@ -52,3 +52,4 @@ add_subdirectory(sample04-particles)
add_subdirectory(sample05-lua)
add_subdirectory(sample06-racer)
+
View
85 gameplay-samples/sample00-mesh/sample00-mesh.cbp
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+ <FileVersion major="1" minor="6" />
+ <Project>
+ <Option title="sample00-mesh" />
+ <Option pch_mode="2" />
+ <Option compiler="gcc" />
+ <Build>
+ <Target title="Debug">
+ <Option output="linux/Debug/sample00-mesh" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="../sample00-mesh" />
+ <Option object_output="linux/Debug/" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-g" />
+ </Compiler>
+ <Linker>
+ <Add directory="../../gameplay/linux/Debug" />
+ </Linker>
+ </Target>
+ <Target title="Release">
+ <Option output="linux/Release/sample00-mesh" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="../sample00-mesh" />
+ <Option object_output="linux/Release/" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-O2" />
+ </Compiler>
+ <Linker>
+ <Add option="-s" />
+ <Add directory="../../gameplay/linux/Release" />
+ </Linker>
+ </Target>
+ </Build>
+ <Compiler>
+ <Add option="-Wall" />
+ <Add option="-fexceptions" />
+ <Add directory="../../gameplay/src" />
+ <Add directory="../../external-deps/lua/include" />
+ <Add directory="../../external-deps/bullet/include" />
+ <Add directory="../../external-deps/libpng/include" />
+ <Add directory="../../external-deps/oggvorbis/include" />
+ <Add directory="../../external-deps/zlib/include" />
+ <Add directory="../../external-deps/openal/include" />
+ <Add directory="../../external-deps/glew/include" />
+ </Compiler>
+ <Linker>
+ <Add library="gameplay" />
+ <Add library="m" />
+ <Add library="lua" />
+ <Add library="png" />
+ <Add library="z" />
+ <Add library="vorbis" />
+ <Add library="ogg" />
+ <Add library="BulletDynamics" />
+ <Add library="BulletCollision" />
+ <Add library="LinearMath" />
+ <Add library="openal" />
+ <Add library="GLEW" />
+ <Add library="GL" />
+ <Add library="rt" />
+ <Add library="dl" />
+ <Add library="X11" />
+ <Add directory="../../external-deps/lua/lib/linux" />
+ <Add directory="../../external-deps/zlib/lib/linux" />
+ <Add directory="../../external-deps/libpng/lib/linux" />
+ <Add directory="../../external-deps/bullet/lib/linux" />
+ <Add directory="../../external-deps/oggvorbis/lib/linux" />
+ <Add directory="../../external-deps/glew/lib/linux" />
+ </Linker>
+ <ExtraCommands>
+ <Add after="cp -rn ../../gameplay/res/shaders ./res" />
+ <Add after="cp -rn ../../gameplay/res/logo_powered_white.png ./res" />
+ <Mode after="always" />
+ </ExtraCommands>
+ <Unit filename="src/MeshGame.cpp" />
+ <Unit filename="src/MeshGame.h" />
+ <Extensions>
+ <code_completion />
+ <debugger />
+ </Extensions>
+ </Project>
+</CodeBlocks_project_file>
View
85 gameplay-samples/sample01-longboard/sample01-longboard.cbp
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+ <FileVersion major="1" minor="6" />
+ <Project>
+ <Option title="sample01-longboard" />
+ <Option pch_mode="2" />
+ <Option compiler="gcc" />
+ <Build>
+ <Target title="Debug">
+ <Option output="linux/Debug/sample01-longboard" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="../sample01-longboard" />
+ <Option object_output="linux/Debug/" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-g" />
+ </Compiler>
+ <Linker>
+ <Add directory="../../gameplay/linux/Debug" />
+ </Linker>
+ </Target>
+ <Target title="Release">
+ <Option output="linux/Release/sample01-longboard" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="../sample01-longboard" />
+ <Option object_output="linux/Release/" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-O2" />
+ </Compiler>
+ <Linker>
+ <Add option="-s" />
+ <Add directory="../../gameplay/linux/Release" />
+ </Linker>
+ </Target>
+ </Build>
+ <Compiler>
+ <Add option="-Wall" />
+ <Add option="-fexceptions" />
+ <Add directory="../../gameplay/src" />
+ <Add directory="../../external-deps/lua/include" />
+ <Add directory="../../external-deps/bullet/include" />
+ <Add directory="../../external-deps/libpng/include" />
+ <Add directory="../../external-deps/oggvorbis/include" />
+ <Add directory="../../external-deps/zlib/include" />
+ <Add directory="../../external-deps/openal/include" />
+ <Add directory="../../external-deps/glew/include" />
+ </Compiler>
+ <Linker>
+ <Add library="gameplay" />
+ <Add library="m" />
+ <Add library="lua" />
+ <Add library="png" />
+ <Add library="z" />
+ <Add library="vorbis" />
+ <Add library="ogg" />
+ <Add library="BulletDynamics" />
+ <Add library="BulletCollision" />
+ <Add library="LinearMath" />
+ <Add library="openal" />
+ <Add library="GLEW" />
+ <Add library="GL" />
+ <Add library="rt" />
+ <Add library="dl" />
+ <Add library="X11" />
+ <Add directory="../../external-deps/lua/lib/linux" />
+ <Add directory="../../external-deps/zlib/lib/linux" />
+ <Add directory="../../external-deps/libpng/lib/linux" />
+ <Add directory="../../external-deps/bullet/lib/linux" />
+ <Add directory="../../external-deps/oggvorbis/lib/linux" />
+ <Add directory="../../external-deps/glew/lib/linux" />
+ </Linker>
+ <ExtraCommands>
+ <Add after="cp -rn ../../gameplay/res/shaders ./res" />
+ <Add after="cp -rn ../../gameplay/res/logo_powered_white.png ./res" />
+ <Mode after="always" />
+ </ExtraCommands>
+ <Unit filename="src/LongboardGame.cpp" />
+ <Unit filename="src/LongboardGame.h" />
+ <Extensions>
+ <code_completion />
+ <debugger />
+ </Extensions>
+ </Project>
+</CodeBlocks_project_file>
View
85 gameplay-samples/sample02-spaceship/sample02-spaceship.cbp
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+ <FileVersion major="1" minor="6" />
+ <Project>
+ <Option title="sample02-spaceship" />
+ <Option pch_mode="2" />
+ <Option compiler="gcc" />
+ <Build>
+ <Target title="Debug">
+ <Option output="linux/Debug/sample02-spaceship" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="../sample02-spaceship" />
+ <Option object_output="linux/Debug/" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-g" />
+ </Compiler>
+ <Linker>
+ <Add directory="../../gameplay/linux/Debug" />
+ </Linker>
+ </Target>
+ <Target title="Release">
+ <Option output="linux/Release/sample02-spaceship" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="../sample02-spaceship" />
+ <Option object_output="linux/Release/" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-O2" />
+ </Compiler>
+ <Linker>
+ <Add option="-s" />
+ <Add directory="../../gameplay/linux/Release" />
+ </Linker>
+ </Target>
+ </Build>
+ <Compiler>
+ <Add option="-Wall" />
+ <Add option="-fexceptions" />
+ <Add directory="../../gameplay/src" />
+ <Add directory="../../external-deps/lua/include" />
+ <Add directory="../../external-deps/bullet/include" />
+ <Add directory="../../external-deps/libpng/include" />
+ <Add directory="../../external-deps/oggvorbis/include" />
+ <Add directory="../../external-deps/zlib/include" />
+ <Add directory="../../external-deps/openal/include" />
+ <Add directory="../../external-deps/glew/include" />
+ </Compiler>
+ <Linker>
+ <Add library="gameplay" />
+ <Add library="m" />
+ <Add library="lua" />
+ <Add library="png" />
+ <Add library="z" />
+ <Add library="vorbis" />
+ <Add library="ogg" />
+ <Add library="BulletDynamics" />
+ <Add library="BulletCollision" />
+ <Add library="LinearMath" />
+ <Add library="openal" />
+ <Add library="GLEW" />
+ <Add library="GL" />
+ <Add library="rt" />
+ <Add library="dl" />
+ <Add library="X11" />
+ <Add directory="../../external-deps/lua/lib/linux" />
+ <Add directory="../../external-deps/zlib/lib/linux" />
+ <Add directory="../../external-deps/libpng/lib/linux" />
+ <Add directory="../../external-deps/bullet/lib/linux" />
+ <Add directory="../../external-deps/oggvorbis/lib/linux" />
+ <Add directory="../../external-deps/glew/lib/linux" />
+ </Linker>
+ <ExtraCommands>
+ <Add after="cp -rn ../../gameplay/res/shaders ./res" />
+ <Add after="cp -rn ../../gameplay/res/logo_powered_white.png ./res" />
+ <Mode after="always" />
+ </ExtraCommands>
+ <Unit filename="src/SpaceshipGame.cpp" />
+ <Unit filename="src/SpaceshipGame.h" />
+ <Extensions>
+ <code_completion />
+ <debugger />
+ </Extensions>
+ </Project>
+</CodeBlocks_project_file>
View
86 gameplay-samples/sample03-character/sample03-character.cbp
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+ <FileVersion major="1" minor="6" />
+ <Project>
+ <Option title="sample03-character" />
+ <Option pch_mode="2" />
+ <Option compiler="gcc" />
+ <Build>
+ <Target title="Debug">
+ <Option output="linux/Debug/sample03-character" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="../sample03-character" />
+ <Option object_output="linux/Debug/" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-g" />
+ </Compiler>
+ <Linker>
+ <Add directory="../../gameplay/linux/Debug" />
+ </Linker>
+ </Target>
+ <Target title="Release">
+ <Option output="linux/Release/sample03-character" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="../sample03-character" />
+ <Option object_output="linux/Release/" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-O2" />
+ </Compiler>
+ <Linker>
+ <Add option="-s" />
+ <Add directory="../../gameplay/linux/Release" />
+ </Linker>
+ </Target>
+ </Build>
+ <Compiler>
+ <Add option="-Wall" />
+ <Add option="-fexceptions" />
+ <Add directory="../../gameplay/src" />
+ <Add directory="../../external-deps/lua/include" />
+ <Add directory="../../external-deps/bullet/include" />
+ <Add directory="../../external-deps/libpng/include" />
+ <Add directory="../../external-deps/oggvorbis/include" />
+ <Add directory="../../external-deps/zlib/include" />
+ <Add directory="../../external-deps/openal/include" />
+ <Add directory="../../external-deps/glew/include" />
+ </Compiler>
+ <Linker>
+ <Add library="gameplay" />
+ <Add library="m" />
+ <Add library="lua" />
+ <Add library="png" />
+ <Add library="z" />
+ <Add library="vorbis" />
+ <Add library="ogg" />
+ <Add library="BulletDynamics" />
+ <Add library="BulletCollision" />
+ <Add library="LinearMath" />
+ <Add library="openal" />
+ <Add library="GLEW" />
+ <Add library="GL" />
+ <Add library="rt" />
+ <Add library="dl" />
+ <Add library="X11" />
+ <Add directory="../../external-deps/lua/lib/linux" />
+ <Add directory="../../external-deps/zlib/lib/linux" />
+ <Add directory="../../external-deps/libpng/lib/linux" />
+ <Add directory="../../external-deps/bullet/lib/linux" />
+ <Add directory="../../external-deps/oggvorbis/lib/linux" />
+ <Add directory="../../external-deps/glew/lib/linux" />
+ </Linker>
+ <ExtraCommands>
+ <Add after="cp -rn ../../gameplay/res/shaders ./res" />
+ <Add after="cp -rn ../../gameplay/res/logo_powered_white.png ./res" />
+ <Add after="cp -rn ./game.png.config ./game.config" />
+ <Mode after="always" />
+ </ExtraCommands>
+ <Unit filename="src/CharacterGame.cpp" />
+ <Unit filename="src/CharacterGame.h" />
+ <Extensions>
+ <code_completion />
+ <debugger />
+ </Extensions>
+ </Project>
+</CodeBlocks_project_file>
View
85 gameplay-samples/sample04-particles/sample04-particles.cbp
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+ <FileVersion major="1" minor="6" />
+ <Project>
+ <Option title="sample04-particles" />
+ <Option pch_mode="2" />
+ <Option compiler="gcc" />
+ <Build>
+ <Target title="Debug">
+ <Option output="linux/Debug/sample04-particles" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="../sample04-particles" />
+ <Option object_output="linux/Debug/" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-g" />
+ </Compiler>
+ <Linker>
+ <Add directory="../../gameplay/linux/Debug" />
+ </Linker>
+ </Target>
+ <Target title="Release">
+ <Option output="linux/Release/sample04-particles" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="../sample04-particles" />
+ <Option object_output="linux/Release/" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-O2" />
+ </Compiler>
+ <Linker>
+ <Add option="-s" />
+ <Add directory="../../gameplay/linux/Release" />
+ </Linker>
+ </Target>
+ </Build>
+ <Compiler>
+ <Add option="-Wall" />
+ <Add option="-fexceptions" />
+ <Add directory="../../gameplay/src" />
+ <Add directory="../../external-deps/lua/include" />
+ <Add directory="../../external-deps/bullet/include" />
+ <Add directory="../../external-deps/libpng/include" />
+ <Add directory="../../external-deps/oggvorbis/include" />
+ <Add directory="../../external-deps/zlib/include" />
+ <Add directory="../../external-deps/openal/include" />
+ <Add directory="../../external-deps/glew/include" />
+ </Compiler>
+ <Linker>
+ <Add library="gameplay" />
+ <Add library="m" />
+ <Add library="lua" />
+ <Add library="png" />
+ <Add library="z" />
+ <Add library="vorbis" />
+ <Add library="ogg" />
+ <Add library="BulletDynamics" />
+ <Add library="BulletCollision" />
+ <Add library="LinearMath" />
+ <Add library="openal" />
+ <Add library="GLEW" />
+ <Add library="GL" />
+ <Add library="rt" />
+ <Add library="dl" />
+ <Add library="X11" />
+ <Add directory="../../external-deps/lua/lib/linux" />
+ <Add directory="../../external-deps/zlib/lib/linux" />
+ <Add directory="../../external-deps/libpng/lib/linux" />
+ <Add directory="../../external-deps/bullet/lib/linux" />
+ <Add directory="../../external-deps/oggvorbis/lib/linux" />
+ <Add directory="../../external-deps/glew/lib/linux" />
+ </Linker>
+ <ExtraCommands>
+ <Add after="cp -rn ../../gameplay/res/shaders ./res" />
+ <Add after="cp -rn ../../gameplay/res/logo_powered_white.png ./res" />
+ <Mode after="always" />
+ </ExtraCommands>
+ <Unit filename="src/ParticlesGame.cpp" />
+ <Unit filename="src/ParticlesGame.h" />
+ <Extensions>
+ <code_completion />
+ <debugger />
+ </Extensions>
+ </Project>
+</CodeBlocks_project_file>
View
85 gameplay-samples/sample05-lua/sample05-lua.cbp
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+ <FileVersion major="1" minor="6" />
+ <Project>
+ <Option title="sample05-lua" />
+ <Option pch_mode="2" />
+ <Option compiler="gcc" />
+ <Build>
+ <Target title="Debug">
+ <Option output="linux/Debug/sample05-lua" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="../sample05-lua" />
+ <Option object_output="linux/Debug/" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-g" />
+ </Compiler>
+ <Linker>
+ <Add directory="../../gameplay/linux/Debug" />
+ </Linker>
+ </Target>
+ <Target title="Release">
+ <Option output="linux/Release/sample05-lua" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="../sample05-lua" />
+ <Option object_output="linux/Release/" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-O2" />
+ </Compiler>
+ <Linker>
+ <Add option="-s" />
+ <Add directory="../../gameplay/linux/Release" />
+ </Linker>
+ </Target>
+ </Build>
+ <Compiler>
+ <Add option="-Wall" />
+ <Add option="-fexceptions" />
+ <Add directory="../../gameplay/src" />
+ <Add directory="../../external-deps/lua/include" />
+ <Add directory="../../external-deps/bullet/include" />
+ <Add directory="../../external-deps/libpng/include" />
+ <Add directory="../../external-deps/oggvorbis/include" />
+ <Add directory="../../external-deps/zlib/include" />
+ <Add directory="../../external-deps/openal/include" />
+ <Add directory="../../external-deps/glew/include" />
+ </Compiler>
+ <Linker>
+ <Add library="gameplay" />
+ <Add library="m" />
+ <Add library="lua" />
+ <Add library="png" />
+ <Add library="z" />
+ <Add library="vorbis" />
+ <Add library="ogg" />
+ <Add library="BulletDynamics" />
+ <Add library="BulletCollision" />
+ <Add library="LinearMath" />
+ <Add library="openal" />
+ <Add library="GLEW" />
+ <Add library="GL" />
+ <Add library="rt" />
+ <Add library="dl" />
+ <Add library="X11" />
+ <Add directory="../../external-deps/lua/lib/linux" />
+ <Add directory="../../external-deps/zlib/lib/linux" />
+ <Add directory="../../external-deps/libpng/lib/linux" />
+ <Add directory="../../external-deps/bullet/lib/linux" />
+ <Add directory="../../external-deps/oggvorbis/lib/linux" />
+ <Add directory="../../external-deps/glew/lib/linux" />
+ </Linker>
+ <ExtraCommands>
+ <Add after="cp -rn ../../gameplay/res/shaders ./res" />
+ <Add after="cp -rn ../../gameplay/res/logo_powered_white.png ./res" />
+ <Mode after="always" />
+ </ExtraCommands>
+ <Unit filename="src/LuaGame.cpp" />
+ <Unit filename="src/LuaGame.h" />
+ <Extensions>
+ <code_completion />
+ <debugger />
+ </Extensions>
+ </Project>
+</CodeBlocks_project_file>
View
86 gameplay-samples/sample06-racer/sample06-racer.cbp
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+ <FileVersion major="1" minor="6" />
+ <Project>
+ <Option title="sample06-racer" />
+ <Option pch_mode="2" />
+ <Option compiler="gcc" />
+ <Build>
+ <Target title="Debug">
+ <Option output="linux/Debug/sample06-racer" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="../sample06-racer" />
+ <Option object_output="linux/Debug/" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-g" />
+ </Compiler>
+ <Linker>
+ <Add directory="../../gameplay/linux/Debug" />
+ </Linker>
+ </Target>
+ <Target title="Release">
+ <Option output="linux/Release/sample06-racer" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="../sample06-racer" />
+ <Option object_output="linux/Release/" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-O2" />
+ </Compiler>
+ <Linker>
+ <Add option="-s" />
+ <Add directory="../../gameplay/linux/Release" />
+ </Linker>
+ </Target>
+ </Build>
+ <Compiler>
+ <Add option="-Wall" />
+ <Add option="-fexceptions" />
+ <Add directory="../../gameplay/src" />
+ <Add directory="../../external-deps/lua/include" />
+ <Add directory="../../external-deps/bullet/include" />
+ <Add directory="../../external-deps/libpng/include" />
+ <Add directory="../../external-deps/oggvorbis/include" />
+ <Add directory="../../external-deps/zlib/include" />
+ <Add directory="../../external-deps/openal/include" />
+ <Add directory="../../external-deps/glew/include" />
+ </Compiler>
+ <Linker>
+ <Add library="gameplay" />
+ <Add library="m" />
+ <Add library="lua" />
+ <Add library="png" />
+ <Add library="z" />
+ <Add library="vorbis" />
+ <Add library="ogg" />
+ <Add library="BulletDynamics" />
+ <Add library="BulletCollision" />
+ <Add library="LinearMath" />
+ <Add library="openal" />
+ <Add library="GLEW" />
+ <Add library="GL" />
+ <Add library="rt" />
+ <Add library="dl" />
+ <Add library="X11" />
+ <Add directory="../../external-deps/lua/lib/linux" />
+ <Add directory="../../external-deps/zlib/lib/linux" />
+ <Add directory="../../external-deps/libpng/lib/linux" />
+ <Add directory="../../external-deps/bullet/lib/linux" />
+ <Add directory="../../external-deps/oggvorbis/lib/linux" />
+ <Add directory="../../external-deps/glew/lib/linux" />
+ </Linker>
+ <ExtraCommands>
+ <Add after="cp -rn ../../gameplay/res/shaders ./res" />
+ <Add after="cp -rn ../../gameplay/res/logo_powered_white.png ./res" />
+ <Add after="cp -rn ./game.png.config ./game.config" />
+ <Mode after="always" />
+ </ExtraCommands>
+ <Unit filename="src/RacerGame.cpp" />
+ <Unit filename="src/RacerGame.h" />
+ <Extensions>
+ <code_completion />
+ <debugger />
+ </Extensions>
+ </Project>
+</CodeBlocks_project_file>
View
BIN  gameplay-tests/Default-568h@2x.png
Deleted file not rendered
View
115 gameplay-tests/gameplay-tests.cbp
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+ <FileVersion major="1" minor="6" />
+ <Project>
+ <Option title="gameplay-tests" />
+ <Option pch_mode="2" />
+ <Option compiler="gcc" />
+ <Build>
+ <Target title="Debug">
+ <Option output="linux/Debug/gameplay-tests" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="../gameplay-tests" />
+ <Option object_output="linux/Debug/" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-g" />
+ </Compiler>
+ <Linker>
+ <Add directory="../gameplay/linux/Debug" />
+ </Linker>
+ </Target>
+ <Target title="Release">
+ <Option output="linux/Release/gameplay-tests" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="../gameplay-tests" />
+ <Option object_output="linux/Release/" />
+ <Option type="1" />
+ <Option compiler="gcc" />
+ <Compiler>
+ <Add option="-O2" />
+ </Compiler>
+ <Linker>
+ <Add option="-s" />
+ <Add directory="../gameplay/linux/Release" />
+ </Linker>
+ </Target>
+ </Build>
+ <Compiler>
+ <Add option="-Wall" />
+ <Add option="-fexceptions" />
+ <Add directory="../gameplay/src" />
+ <Add directory="../external-deps/lua/include" />
+ <Add directory="../external-deps/bullet/include" />
+ <Add directory="../external-deps/libpng/include" />
+ <Add directory="../external-deps/oggvorbis/include" />
+ <Add directory="../external-deps/zlib/include" />
+ <Add directory="../external-deps/openal/include" />
+ <Add directory="../external-deps/glew/include" />
+ </Compiler>
+ <Linker>
+ <Add library="gameplay" />
+ <Add library="m" />
+ <Add library="lua" />
+ <Add library="png" />
+ <Add library="z" />
+ <Add library="vorbis" />
+ <Add library="ogg" />
+ <Add library="BulletDynamics" />
+ <Add library="BulletCollision" />
+ <Add library="LinearMath" />
+ <Add library="openal" />
+ <Add library="GLEW" />
+ <Add library="GL" />
+ <Add library="rt" />
+ <Add library="dl" />
+ <Add library="X11" />
+ <Add directory="../external-deps/lua/lib/linux" />
+ <Add directory="../external-deps/zlib/lib/linux" />
+ <Add directory="../external-deps/libpng/lib/linux" />
+ <Add directory="../external-deps/bullet/lib/linux" />
+ <Add directory="../external-deps/oggvorbis/lib/linux" />
+ <Add directory="../external-deps/glew/lib/linux" />
+ </Linker>
+ <ExtraCommands>
+ <Add after="cp -rn ../gameplay/res/shaders ../gameplay-tests/res" />
+ <Add after="cp -rn ../gameplay/res/logo_powered_white.png ../gameplay-tests/res" />
+ <Mode after="always" />
+ </ExtraCommands>
+ <Unit filename="src/Audio3DTest.cpp" />
+ <Unit filename="src/Audio3DTest.h" />
+ <Unit filename="src/CreateSceneTest.cpp" />
+ <Unit filename="src/CreateSceneTest.h" />
+ <Unit filename="src/FirstPersonCamera.cpp" />
+ <Unit filename="src/FirstPersonCamera.h" />
+ <Unit filename="src/GestureTest.cpp" />
+ <Unit filename="src/GestureTest.h" />
+ <Unit filename="src/Grid.cpp" />
+ <Unit filename="src/Grid.h" />
+ <Unit filename="src/InputTest.cpp" />
+ <Unit filename="src/InputTest.h" />
+ <Unit filename="src/LoadSceneTest.cpp" />
+ <Unit filename="src/LoadSceneTest.h" />
+ <Unit filename="src/MeshBatchTest.cpp" />
+ <Unit filename="src/MeshBatchTest.h" />
+ <Unit filename="src/MeshPrimitiveTest.cpp" />
+ <Unit filename="src/MeshPrimitiveTest.h" />
+ <Unit filename="src/PhysicsSceneTest.cpp" />
+ <Unit filename="src/PhysicsSceneTest.h" />
+ <Unit filename="src/SpriteBatchTest.cpp" />
+ <Unit filename="src/SpriteBatchTest.h" />
+ <Unit filename="src/Test.cpp" />
+ <Unit filename="src/Test.h" />
+ <Unit filename="src/TestsGame.cpp" />
+ <Unit filename="src/TestsGame.h" />
+ <Unit filename="src/TextTest.cpp" />
+ <Unit filename="src/TextTest.h" />
+ <Unit filename="src/TextureTest.cpp" />
+ <Unit filename="src/TextureTest.h" />
+ <Unit filename="src/TriangleTest.cpp" />
+ <Unit filename="src/TriangleTest.h" />
+ <Extensions>
+ <code_completion />
+ <debugger />
+ </Extensions>
+ </Project>
+</CodeBlocks_project_file>
View
30 gameplay.workspace
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_workspace_file>
+ <Workspace title="GamePlay">
+ <Project filename="gameplay/gameplay.cbp" />
+ <Project filename="gameplay-tests/gameplay-tests.cbp">
+ <Depends filename="gameplay/gameplay.cbp" />
+ </Project>
+ <Project filename="gameplay-samples/sample00-mesh/sample00-mesh.cbp">
+ <Depends filename="gameplay/gameplay.cbp" />
+ </Project>
+ <Project filename="gameplay-samples/sample01-longboard/sample01-longboard.cbp">
+ <Depends filename="gameplay/gameplay.cbp" />
+ </Project>
+ <Project filename="gameplay-samples/sample02-spaceship/sample02-spaceship.cbp">
+ <Depends filename="gameplay/gameplay.cbp" />
+ </Project>
+ <Project filename="gameplay-samples/sample03-character/sample03-character.cbp">
+ <Depends filename="gameplay/gameplay.cbp" />
+ </Project>
+ <Project filename="gameplay-samples/sample04-particles/sample04-particles.cbp">
+ <Depends filename="gameplay/gameplay.cbp" />
+ </Project>
+ <Project filename="gameplay-samples/sample05-lua/sample05-lua.cbp">
+ <Depends filename="gameplay/gameplay.cbp" />
+ </Project>
+ <Project filename="gameplay-samples/sample06-racer/sample06-racer.cbp" active="1">
+ <Depends filename="gameplay/gameplay.cbp" />
+ </Project>
+ </Workspace>
+</CodeBlocks_workspace_file>
View
591 gameplay/gameplay.cbp
@@ -0,0 +1,591 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+ <FileVersion major="1" minor="6" />
+ <Project>
+ <Option title="gameplay" />
+ <Option pch_mode="2" />
+ <Option compiler="gcc" />
+ <Build>
+ <Target title="Debug">
+ <Option output="linux/Debug/libgameplay" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="" />
+ <Option object_output="linux/Debug/" />
+ <Option type="2" />
+ <Option compiler="gcc" />
+ <Option createDefFile="1" />
+ <Compiler>
+ <Add option="-g" />
+ </Compiler>
+ </Target>
+ <Target title="Release">
+ <Option output="linux/Release/libgameplay" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="" />
+ <Option object_output="linux/Release/" />
+ <Option type="2" />
+ <Option compiler="gcc" />
+ <Option createDefFile="1" />
+ <Compiler>
+ <Add option="-O2" />
+ </Compiler>
+ <Linker>
+ <Add option="-s" />
+ </Linker>
+ </Target>
+ </Build>
+ <Compiler>
+ <Add option="-pedantic" />
+ <Add option="-Wswitch" />
+ <Add option="-Wunused-variable" />
+ <Add directory="../external-deps/zlib/include" />
+ <Add directory="../external-deps/lua/include" />
+ <Add directory="../external-deps/libpng/include" />
+ <Add directory="../external-deps/bullet/include" />
+ <Add directory="../external-deps/oggvorbis/include" />
+ <Add directory="../gameplay/src" />
+ </Compiler>
+ <Linker>
+ <Add directory="../external-deps/lua/lib/linux" />
+ <Add directory="../external-deps/libpng/lib/linux" />
+ <Add directory="../external-deps/bullet/lib/linux" />
+ <Add directory="../external-deps/oggvorbis/lib/linux" />
+ </Linker>
+ <Unit filename="src/AIAgent.cpp" />
+ <Unit filename="src/AIAgent.h" />
+ <Unit filename="src/AIController.cpp" />
+ <Unit filename="src/AIController.h" />
+ <Unit filename="src/AIMessage.cpp" />
+ <Unit filename="src/AIMessage.h" />
+ <Unit filename="src/AIState.cpp" />
+ <Unit filename="src/AIState.h" />
+ <Unit filename="src/AIStateMachine.cpp" />
+ <Unit filename="src/AIStateMachine.h" />
+ <Unit filename="src/AbsoluteLayout.cpp" />
+ <Unit filename="src/AbsoluteLayout.h" />
+ <Unit filename="src/Animation.cpp" />
+ <Unit filename="src/Animation.h" />
+ <Unit filename="src/AnimationClip.cpp" />
+ <Unit filename="src/AnimationClip.h" />
+ <Unit filename="src/AnimationController.cpp" />
+ <Unit filename="src/AnimationController.h" />
+ <Unit filename="src/AnimationTarget.cpp" />
+ <Unit filename="src/AnimationTarget.h" />
+ <Unit filename="src/AnimationValue.cpp" />
+ <Unit filename="src/AnimationValue.h" />
+ <Unit filename="src/AudioBuffer.cpp" />
+ <Unit filename="src/AudioBuffer.h" />
+ <Unit filename="src/AudioController.cpp" />
+ <Unit filename="src/AudioController.h" />
+ <Unit filename="src/AudioListener.cpp" />
+ <Unit filename="src/AudioListener.h" />
+ <Unit filename="src/AudioSource.cpp" />
+ <Unit filename="src/AudioSource.h" />
+ <Unit filename="src/Base.h" />
+ <Unit filename="src/BoundingBox.cpp" />
+ <Unit filename="src/BoundingBox.h" />
+ <Unit filename="src/BoundingSphere.cpp" />
+ <Unit filename="src/BoundingSphere.h" />
+ <Unit filename="src/Bundle.cpp" />
+ <Unit filename="src/Bundle.h" />
+ <Unit filename="src/Button.cpp" />
+ <Unit filename="src/Button.h" />
+ <Unit filename="src/Camera.cpp" />
+ <Unit filename="src/Camera.h" />
+ <Unit filename="src/CheckBox.cpp" />
+ <Unit filename="src/CheckBox.h" />
+ <Unit filename="src/Container.cpp" />
+ <Unit filename="src/Container.h" />
+ <Unit filename="src/Control.cpp" />
+ <Unit filename="src/Control.h" />
+ <Unit filename="src/Curve.cpp" />
+ <Unit filename="src/Curve.h" />
+ <Unit filename="src/DebugNew.cpp" />
+ <Unit filename="src/DebugNew.h" />
+ <Unit filename="src/DepthStencilTarget.cpp" />
+ <Unit filename="src/DepthStencilTarget.h" />
+ <Unit filename="src/Effect.cpp" />
+ <Unit filename="src/Effect.h" />
+ <Unit filename="src/FileSystem.cpp" />
+ <Unit filename="src/FileSystem.h" />
+ <Unit filename="src/FlowLayout.cpp" />
+ <Unit filename="src/FlowLayout.h" />
+ <Unit filename="src/Font.cpp" />
+ <Unit filename="src/Font.h" />
+ <Unit filename="src/Form.cpp" />
+ <Unit filename="src/Form.h" />
+ <Unit filename="src/FrameBuffer.cpp" />
+ <Unit filename="src/FrameBuffer.h" />
+ <Unit filename="src/Frustum.cpp" />
+ <Unit filename="src/Frustum.h" />
+ <Unit filename="src/Game.cpp" />
+ <Unit filename="src/Game.h" />
+ <Unit filename="src/Gamepad.cpp" />
+ <Unit filename="src/Gamepad.h" />
+ <Unit filename="src/Gesture.h" />
+ <Unit filename="src/Image.cpp" />
+ <Unit filename="src/Image.h" />
+ <Unit filename="src/Joint.cpp" />
+ <Unit filename="src/Joint.h" />
+ <Unit filename="src/Joystick.cpp" />
+ <Unit filename="src/Joystick.h" />
+ <Unit filename="src/Keyboard.h" />
+ <Unit filename="src/Label.cpp" />
+ <Unit filename="src/Label.h" />
+ <Unit filename="src/Layout.cpp" />
+ <Unit filename="src/Layout.h" />
+ <Unit filename="src/Light.cpp" />
+ <Unit filename="src/Light.h" />
+ <Unit filename="src/Logger.cpp" />
+ <Unit filename="src/Logger.h" />
+ <Unit filename="src/Material.cpp" />
+ <Unit filename="src/Material.h" />
+ <Unit filename="src/MaterialParameter.cpp" />
+ <Unit filename="src/MaterialParameter.h" />
+ <Unit filename="src/MathUtil.cpp" />
+ <Unit filename="src/MathUtil.h" />
+ <Unit filename="src/Matrix.cpp" />
+ <Unit filename="src/Matrix.h" />
+ <Unit filename="src/Mesh.cpp" />
+ <Unit filename="src/Mesh.h" />
+ <Unit filename="src/MeshBatch.cpp" />
+ <Unit filename="src/MeshBatch.h" />
+ <Unit filename="src/MeshPart.cpp" />
+ <Unit filename="src/MeshPart.h" />
+ <Unit filename="src/MeshSkin.cpp" />
+ <Unit filename="src/MeshSkin.h" />
+ <Unit filename="src/Model.cpp" />
+ <Unit filename="src/Model.h" />
+ <Unit filename="src/Mouse.h" />
+ <Unit filename="src/Node.cpp" />
+ <Unit filename="src/Node.h" />
+ <Unit filename="src/ParticleEmitter.cpp" />
+ <Unit filename="src/ParticleEmitter.h" />
+ <Unit filename="src/Pass.cpp" />
+ <Unit filename="src/Pass.h" />
+ <Unit filename="src/PhysicsCharacter.cpp" />
+ <Unit filename="src/PhysicsCharacter.h" />
+ <Unit filename="src/PhysicsCollisionObject.cpp" />
+ <Unit filename="src/PhysicsCollisionObject.h" />
+ <Unit filename="src/PhysicsCollisionShape.cpp" />
+ <Unit filename="src/PhysicsCollisionShape.h" />
+ <Unit filename="src/PhysicsConstraint.cpp" />
+ <Unit filename="src/PhysicsConstraint.h" />
+ <Unit filename="src/PhysicsController.cpp" />
+ <Unit filename="src/PhysicsController.h" />
+ <Unit filename="src/PhysicsFixedConstraint.cpp" />
+ <Unit filename="src/PhysicsFixedConstraint.h" />
+ <Unit filename="src/PhysicsGenericConstraint.cpp" />
+ <Unit filename="src/PhysicsGenericConstraint.h" />
+ <Unit filename="src/PhysicsGhostObject.cpp" />
+ <Unit filename="src/PhysicsGhostObject.h" />
+ <Unit filename="src/PhysicsHingeConstraint.cpp" />
+ <Unit filename="src/PhysicsHingeConstraint.h" />
+ <Unit filename="src/PhysicsRigidBody.cpp" />
+ <Unit filename="src/PhysicsRigidBody.h" />
+ <Unit filename="src/PhysicsSocketConstraint.cpp" />
+ <Unit filename="src/PhysicsSocketConstraint.h" />
+ <Unit filename="src/PhysicsSpringConstraint.cpp" />
+ <Unit filename="src/PhysicsSpringConstraint.h" />
+ <Unit filename="src/PhysicsVehicle.cpp" />
+ <Unit filename="src/PhysicsVehicle.h" />
+ <Unit filename="src/PhysicsVehicleWheel.cpp" />
+ <Unit filename="src/PhysicsVehicleWheel.h" />
+ <Unit filename="src/Plane.cpp" />
+ <Unit filename="src/Plane.h" />
+ <Unit filename="src/Platform.h" />
+ <Unit filename="src/PlatformAndroid.cpp" />
+ <Unit filename="src/PlatformLinux.cpp" />
+ <Unit filename="src/PlatformQNX.cpp" />
+ <Unit filename="src/PlatformWin32.cpp" />
+ <Unit filename="src/Properties.cpp" />
+ <Unit filename="src/Properties.h" />
+ <Unit filename="src/Quaternion.cpp" />
+ <Unit filename="src/Quaternion.h" />
+ <Unit filename="src/RadioButton.cpp" />
+ <Unit filename="src/RadioButton.h" />
+ <Unit filename="src/Ray.cpp" />
+ <Unit filename="src/Ray.h" />
+ <Unit filename="src/Rectangle.cpp" />
+ <Unit filename="src/Rectangle.h" />
+ <Unit filename="src/Ref.cpp" />
+ <Unit filename="src/Ref.h" />
+ <Unit filename="src/RenderState.cpp" />
+ <Unit filename="src/RenderState.h" />
+ <Unit filename="src/RenderTarget.cpp" />
+ <Unit filename="src/RenderTarget.h" />
+ <Unit filename="src/Scene.cpp" />
+ <Unit filename="src/Scene.h" />
+ <Unit filename="src/SceneLoader.cpp" />
+ <Unit filename="src/SceneLoader.h" />
+ <Unit filename="src/ScreenDisplayer.cpp" />
+ <Unit filename="src/ScreenDisplayer.h" />
+ <Unit filename="src/ScriptController.cpp" />
+ <Unit filename="src/ScriptController.h" />
+ <Unit filename="src/ScriptTarget.cpp" />
+ <Unit filename="src/ScriptTarget.h" />
+ <Unit filename="src/Slider.cpp" />
+ <Unit filename="src/Slider.h" />
+ <Unit filename="src/SpriteBatch.cpp" />
+ <Unit filename="src/SpriteBatch.h" />
+ <Unit filename="src/Technique.cpp" />
+ <Unit filename="src/Technique.h" />
+ <Unit filename="src/TextBox.cpp" />
+ <Unit filename="src/TextBox.h" />
+ <Unit filename="src/Texture.cpp" />
+ <Unit filename="src/Texture.h" />
+ <Unit filename="src/Theme.cpp" />
+ <Unit filename="src/Theme.h" />
+ <Unit filename="src/ThemeStyle.cpp" />
+ <Unit filename="src/ThemeStyle.h" />
+ <Unit filename="src/TimeListener.h" />
+ <Unit filename="src/Touch.h" />
+ <Unit filename="src/Transform.cpp" />
+ <Unit filename="src/Transform.h" />
+ <Unit filename="src/Vector2.cpp" />
+ <Unit filename="src/Vector2.h" />
+ <Unit filename="src/Vector3.cpp" />
+ <Unit filename="src/Vector3.h" />
+ <Unit filename="src/Vector4.cpp" />
+ <Unit filename="src/Vector4.h" />
+ <Unit filename="src/VertexAttributeBinding.cpp" />
+ <Unit filename="src/VertexAttributeBinding.h" />
+ <Unit filename="src/VertexFormat.cpp" />
+ <Unit filename="src/VertexFormat.h" />
+ <Unit filename="src/VerticalLayout.cpp" />
+ <Unit filename="src/VerticalLayout.h" />
+ <Unit filename="src/gameplay-main-android.cpp" />
+ <Unit filename="src/gameplay-main-linux.cpp" />
+ <Unit filename="src/gameplay-main-qnx.cpp" />
+ <Unit filename="src/gameplay-main-win32.cpp" />
+ <Unit filename="src/gameplay.h" />
+ <Unit filename="src/lua/lua_AIAgent.cpp" />
+ <Unit filename="src/lua/lua_AIAgent.h" />
+ <Unit filename="src/lua/lua_AIAgentListener.cpp" />
+ <Unit filename="src/lua/lua_AIAgentListener.h" />
+ <Unit filename="src/lua/lua_AIController.cpp" />
+ <Unit filename="src/lua/lua_AIController.h" />
+ <Unit filename="src/lua/lua_AIMessage.cpp" />
+ <Unit filename="src/lua/lua_AIMessage.h" />
+ <Unit filename="src/lua/lua_AIMessageParameterType.cpp" />
+ <Unit filename="src/lua/lua_AIMessageParameterType.h" />
+ <Unit filename="src/lua/lua_AIState.cpp" />
+ <Unit filename="src/lua/lua_AIState.h" />
+ <Unit filename="src/lua/lua_AIStateListener.cpp" />
+ <Unit filename="src/lua/lua_AIStateListener.h" />
+ <Unit filename="src/lua/lua_AIStateMachine.cpp" />
+ <Unit filename="src/lua/lua_AIStateMachine.h" />
+ <Unit filename="src/lua/lua_AbsoluteLayout.cpp" />
+ <Unit filename="src/lua/lua_AbsoluteLayout.h" />
+ <Unit filename="src/lua/lua_Animation.cpp" />
+ <Unit filename="src/lua/lua_Animation.h" />
+ <Unit filename="src/lua/lua_AnimationClip.cpp" />
+ <Unit filename="src/lua/lua_AnimationClip.h" />
+ <Unit filename="src/lua/lua_AnimationClipListener.cpp" />
+ <Unit filename="src/lua/lua_AnimationClipListener.h" />
+ <Unit filename="src/lua/lua_AnimationClipListenerEventType.cpp" />
+ <Unit filename="src/lua/lua_AnimationClipListenerEventType.h" />
+ <Unit filename="src/lua/lua_AnimationController.cpp" />
+ <Unit filename="src/lua/lua_AnimationController.h" />
+ <Unit filename="src/lua/lua_AnimationTarget.cpp" />
+ <Unit filename="src/lua/lua_AnimationTarget.h" />
+ <Unit filename="src/lua/lua_AnimationValue.cpp" />
+ <Unit filename="src/lua/lua_AnimationValue.h" />
+ <Unit filename="src/lua/lua_AudioBuffer.cpp" />
+ <Unit filename="src/lua/lua_AudioBuffer.h" />
+ <Unit filename="src/lua/lua_AudioController.cpp" />
+ <Unit filename="src/lua/lua_AudioController.h" />
+ <Unit filename="src/lua/lua_AudioListener.cpp" />
+ <Unit filename="src/lua/lua_AudioListener.h" />
+ <Unit filename="src/lua/lua_AudioSource.cpp" />
+ <Unit filename="src/lua/lua_AudioSource.h" />
+ <Unit filename="src/lua/lua_AudioSourceState.cpp" />
+ <Unit filename="src/lua/lua_AudioSourceState.h" />
+ <Unit filename="src/lua/lua_BoundingBox.cpp" />
+ <Unit filename="src/lua/lua_BoundingBox.h" />
+ <Unit filename="src/lua/lua_BoundingSphere.cpp" />
+ <Unit filename="src/lua/lua_BoundingSphere.h" />
+ <Unit filename="src/lua/lua_Bundle.cpp" />
+ <Unit filename="src/lua/lua_Bundle.h" />
+ <Unit filename="src/lua/lua_Button.cpp" />
+ <Unit filename="src/lua/lua_Button.h" />
+ <Unit filename="src/lua/lua_Camera.cpp" />
+ <Unit filename="src/lua/lua_Camera.h" />
+ <Unit filename="src/lua/lua_CameraType.cpp" />
+ <Unit filename="src/lua/lua_CameraType.h" />
+ <Unit filename="src/lua/lua_CheckBox.cpp" />
+ <Unit filename="src/lua/lua_CheckBox.h" />
+ <Unit filename="src/lua/lua_Container.cpp" />
+ <Unit filename="src/lua/lua_Container.h" />
+ <Unit filename="src/lua/lua_ContainerScroll.cpp" />
+ <Unit filename="src/lua/lua_ContainerScroll.h" />
+ <Unit filename="src/lua/lua_Control.cpp" />
+ <Unit filename="src/lua/lua_Control.h" />
+ <Unit filename="src/lua/lua_ControlAlignment.cpp" />
+ <Unit filename="src/lua/lua_ControlAlignment.h" />
+ <Unit filename="src/lua/lua_ControlListener.cpp" />
+ <Unit filename="src/lua/lua_ControlListener.h" />
+ <Unit filename="src/lua/lua_ControlListenerEventType.cpp" />
+ <Unit filename="src/lua/lua_ControlListenerEventType.h" />
+ <Unit filename="src/lua/lua_ControlState.cpp" />
+ <Unit filename="src/lua/lua_ControlState.h" />
+ <Unit filename="src/lua/lua_Curve.cpp" />
+ <Unit filename="src/lua/lua_Curve.h" />
+ <Unit filename="src/lua/lua_CurveInterpolationType.cpp" />
+ <Unit filename="src/lua/lua_CurveInterpolationType.h" />
+ <Unit filename="src/lua/lua_DepthStencilTarget.cpp" />
+ <Unit filename="src/lua/lua_DepthStencilTarget.h" />
+ <Unit filename="src/lua/lua_DepthStencilTargetFormat.cpp" />
+ <Unit filename="src/lua/lua_DepthStencilTargetFormat.h" />
+ <Unit filename="src/lua/lua_Effect.cpp" />
+ <Unit filename="src/lua/lua_Effect.h" />
+ <Unit filename="src/lua/lua_FileSystem.cpp" />
+ <Unit filename="src/lua/lua_FileSystem.h" />
+ <Unit filename="src/lua/lua_FlowLayout.cpp" />
+ <Unit filename="src/lua/lua_FlowLayout.h" />
+ <Unit filename="src/lua/lua_Font.cpp" />
+ <Unit filename="src/lua/lua_Font.h" />
+ <Unit filename="src/lua/lua_FontJustify.cpp" />
+ <Unit filename="src/lua/lua_FontJustify.h" />
+ <Unit filename="src/lua/lua_FontStyle.cpp" />
+ <Unit filename="src/lua/lua_FontStyle.h" />
+ <Unit filename="src/lua/lua_FontText.cpp" />
+ <Unit filename="src/lua/lua_FontText.h" />
+ <Unit filename="src/lua/lua_Form.cpp" />
+ <Unit filename="src/lua/lua_Form.h" />
+ <Unit filename="src/lua/lua_FrameBuffer.cpp" />
+ <Unit filename="src/lua/lua_FrameBuffer.h" />
+ <Unit filename="src/lua/lua_Frustum.cpp" />
+ <Unit filename="src/lua/lua_Frustum.h" />
+ <Unit filename="src/lua/lua_Game.cpp" />
+ <Unit filename="src/lua/lua_Game.h" />
+ <Unit filename="src/lua/lua_GameClearFlags.cpp" />
+ <Unit filename="src/lua/lua_GameClearFlags.h" />
+ <Unit filename="src/lua/lua_GameState.cpp" />
+ <Unit filename="src/lua/lua_GameState.h" />
+ <Unit filename="src/lua/lua_Gamepad.cpp" />
+ <Unit filename="src/lua/lua_Gamepad.h" />
+ <Unit filename="src/lua/lua_GamepadButtonState.cpp" />
+ <Unit filename="src/lua/lua_GamepadButtonState.h" />
+ <Unit filename="src/lua/lua_GamepadGamepadEvent.cpp" />
+ <Unit filename="src/lua/lua_GamepadGamepadEvent.h" />
+ <Unit filename="src/lua/lua_Gesture.cpp" />
+ <Unit filename="src/lua/lua_Gesture.h" />
+ <Unit filename="src/lua/lua_GestureGestureEvent.cpp" />
+ <Unit filename="src/lua/lua_GestureGestureEvent.h" />
+ <Unit filename="src/lua/lua_Global.cpp" />
+ <Unit filename="src/lua/lua_Global.h" />
+ <Unit filename="src/lua/lua_Image.cpp" />
+ <Unit filename="src/lua/lua_Image.h" />
+ <Unit filename="src/lua/lua_ImageFormat.cpp" />
+ <Unit filename="src/lua/lua_ImageFormat.h" />
+ <Unit filename="src/lua/lua_Joint.cpp" />
+ <Unit filename="src/lua/lua_Joint.h" />
+ <Unit filename="src/lua/lua_Joystick.cpp" />
+ <Unit filename="src/lua/lua_Joystick.h" />
+ <Unit filename="src/lua/lua_Keyboard.cpp" />
+ <Unit filename="src/lua/lua_Keyboard.h" />
+ <Unit filename="src/lua/lua_KeyboardKey.cpp" />
+ <Unit filename="src/lua/lua_KeyboardKey.h" />
+ <Unit filename="src/lua/lua_KeyboardKeyEvent.cpp" />
+ <Unit filename="src/lua/lua_KeyboardKeyEvent.h" />
+ <Unit filename="src/lua/lua_Label.cpp" />
+ <Unit filename="src/lua/lua_Label.h" />
+ <Unit filename="src/lua/lua_Layout.cpp" />
+ <Unit filename="src/lua/lua_Layout.h" />
+ <Unit filename="src/lua/lua_LayoutType.cpp" />
+ <Unit filename="src/lua/lua_LayoutType.h" />
+ <Unit filename="src/lua/lua_Light.cpp" />
+ <Unit filename="src/lua/lua_Light.h" />
+ <Unit filename="src/lua/lua_LightType.cpp" />
+ <Unit filename="src/lua/lua_LightType.h" />
+ <Unit filename="src/lua/lua_Logger.cpp" />
+ <Unit filename="src/lua/lua_Logger.h" />
+ <Unit filename="src/lua/lua_LoggerLevel.cpp" />
+ <Unit filename="src/lua/lua_LoggerLevel.h" />
+ <Unit filename="src/lua/lua_Material.cpp" />
+ <Unit filename="src/lua/lua_Material.h" />
+ <Unit filename="src/lua/lua_MaterialParameter.cpp" />
+ <Unit filename="src/lua/lua_MaterialParameter.h" />
+ <Unit filename="src/lua/lua_MathUtil.cpp" />
+ <Unit filename="src/lua/lua_MathUtil.h" />
+ <Unit filename="src/lua/lua_Matrix.cpp" />
+ <Unit filename="src/lua/lua_Matrix.h" />
+ <Unit filename="src/lua/lua_Mesh.cpp" />
+ <Unit filename="src/lua/lua_Mesh.h" />
+ <Unit filename="src/lua/lua_MeshBatch.cpp" />
+ <Unit filename="src/lua/lua_MeshBatch.h" />
+ <Unit filename="src/lua/lua_MeshIndexFormat.cpp" />
+ <Unit filename="src/lua/lua_MeshIndexFormat.h" />
+ <Unit filename="src/lua/lua_MeshPart.cpp" />
+ <Unit filename="src/lua/lua_MeshPart.h" />
+ <Unit filename="src/lua/lua_MeshPrimitiveType.cpp" />
+ <Unit filename="src/lua/lua_MeshPrimitiveType.h" />
+ <Unit filename="src/lua/lua_MeshSkin.cpp" />
+ <Unit filename="src/lua/lua_MeshSkin.h" />
+ <Unit filename="src/lua/lua_Model.cpp" />
+ <Unit filename="src/lua/lua_Model.h" />
+ <Unit filename="src/lua/lua_Mouse.cpp" />
+ <Unit filename="src/lua/lua_Mouse.h" />
+ <Unit filename="src/lua/lua_MouseMouseEvent.cpp" />
+ <Unit filename="src/lua/lua_MouseMouseEvent.h" />
+ <Unit filename="src/lua/lua_Node.cpp" />
+ <Unit filename="src/lua/lua_Node.h" />
+ <Unit filename="src/lua/lua_NodeCloneContext.cpp" />
+ <Unit filename="src/lua/lua_NodeCloneContext.h" />
+ <Unit filename="src/lua/lua_NodeType.cpp" />
+ <Unit filename="src/lua/lua_NodeType.h" />
+ <Unit filename="src/lua/lua_ParticleEmitter.cpp" />
+ <Unit filename="src/lua/lua_ParticleEmitter.h" />
+ <Unit filename="src/lua/lua_ParticleEmitterTextureBlending.cpp" />
+ <Unit filename="src/lua/lua_ParticleEmitterTextureBlending.h" />
+ <Unit filename="src/lua/lua_Pass.cpp" />
+ <Unit filename="src/lua/lua_Pass.h" />
+ <Unit filename="src/lua/lua_PhysicsCharacter.cpp" />
+ <Unit filename="src/lua/lua_PhysicsCharacter.h" />
+ <Unit filename="src/lua/lua_PhysicsCollisionObject.cpp" />
+ <Unit filename="src/lua/lua_PhysicsCollisionObject.h" />
+ <Unit filename="src/lua/lua_PhysicsCollisionObjectCollisionListener.cpp" />
+ <Unit filename="src/lua/lua_PhysicsCollisionObjectCollisionListener.h" />
+ <Unit filename="src/lua/lua_PhysicsCollisionObjectCollisionListenerEventType.cpp" />
+ <Unit filename="src/lua/lua_PhysicsCollisionObjectCollisionListenerEventType.h" />
+ <Unit filename="src/lua/lua_PhysicsCollisionObjectCollisionPair.cpp" />
+ <Unit filename="src/lua/lua_PhysicsCollisionObjectCollisionPair.h" />
+ <Unit filename="src/lua/lua_PhysicsCollisionObjectType.cpp" />
+ <Unit filename="src/lua/lua_PhysicsCollisionObjectType.h" />
+ <Unit filename="src/lua/lua_PhysicsCollisionShape.cpp" />
+ <Unit filename="src/lua/lua_PhysicsCollisionShape.h" />
+ <Unit filename="src/lua/lua_PhysicsCollisionShapeDefinition.cpp" />
+ <Unit filename="src/lua/lua_PhysicsCollisionShapeDefinition.h" />
+ <Unit filename="src/lua/lua_PhysicsCollisionShapeType.cpp" />
+ <Unit filename="src/lua/lua_PhysicsCollisionShapeType.h" />
+ <Unit filename="src/lua/lua_PhysicsConstraint.cpp" />
+ <Unit filename="src/lua/lua_PhysicsConstraint.h" />
+ <Unit filename="src/lua/lua_PhysicsController.cpp" />
+ <Unit filename="src/lua/lua_PhysicsController.h" />
+ <Unit filename="src/lua/lua_PhysicsControllerHitFilter.cpp" />
+ <Unit filename="src/lua/lua_PhysicsControllerHitFilter.h" />
+ <Unit filename="src/lua/lua_PhysicsControllerHitResult.cpp" />
+ <Unit filename="src/lua/lua_PhysicsControllerHitResult.h" />
+ <Unit filename="src/lua/lua_PhysicsControllerListener.cpp" />
+ <Unit filename="src/lua/lua_PhysicsControllerListener.h" />
+ <Unit filename="src/lua/lua_PhysicsControllerListenerEventType.cpp" />
+ <Unit filename="src/lua/lua_PhysicsControllerListenerEventType.h" />
+ <Unit filename="src/lua/lua_PhysicsFixedConstraint.cpp" />
+ <Unit filename="src/lua/lua_PhysicsFixedConstraint.h" />
+ <Unit filename="src/lua/lua_PhysicsGenericConstraint.cpp" />
+ <Unit filename="src/lua/lua_PhysicsGenericConstraint.h" />
+ <Unit filename="src/lua/lua_PhysicsGhostObject.cpp" />
+ <Unit filename="src/lua/lua_PhysicsGhostObject.h" />
+ <Unit filename="src/lua/lua_PhysicsHingeConstraint.cpp" />
+ <Unit filename="src/lua/lua_PhysicsHingeConstraint.h" />
+ <Unit filename="src/lua/lua_PhysicsRigidBody.cpp" />
+ <Unit filename="src/lua/lua_PhysicsRigidBody.h" />
+ <Unit filename="src/lua/lua_PhysicsRigidBodyParameters.cpp" />
+ <Unit filename="src/lua/lua_PhysicsRigidBodyParameters.h" />
+ <Unit filename="src/lua/lua_PhysicsSocketConstraint.cpp" />
+ <Unit filename="src/lua/lua_PhysicsSocketConstraint.h" />
+ <Unit filename="src/lua/lua_PhysicsSpringConstraint.cpp" />
+ <Unit filename="src/lua/lua_PhysicsSpringConstraint.h" />
+ <Unit filename="src/lua/lua_PhysicsVehicle.cpp" />
+ <Unit filename="src/lua/lua_PhysicsVehicle.h" />
+ <Unit filename="src/lua/lua_PhysicsVehicleWheel.cpp" />
+ <Unit filename="src/lua/lua_PhysicsVehicleWheel.h" />
+ <Unit filename="src/lua/lua_Plane.cpp" />
+ <Unit filename="src/lua/lua_Plane.h" />
+ <Unit filename="src/lua/lua_Platform.cpp" />
+ <Unit filename="src/lua/lua_Platform.h" />
+ <Unit filename="src/lua/lua_Properties.cpp" />
+ <Unit filename="src/lua/lua_Properties.h" />
+ <Unit filename="src/lua/lua_PropertiesType.cpp" />
+ <Unit filename="src/lua/lua_PropertiesType.h" />
+ <Unit filename="src/lua/lua_Quaternion.cpp" />
+ <Unit filename="src/lua/lua_Quaternion.h" />
+ <Unit filename="src/lua/lua_RadioButton.cpp" />
+ <Unit filename="src/lua/lua_RadioButton.h" />
+ <Unit filename="src/lua/lua_Ray.cpp" />
+ <Unit filename="src/lua/lua_Ray.h" />
+ <Unit filename="src/lua/lua_Rectangle.cpp" />
+ <Unit filename="src/lua/lua_Rectangle.h" />
+ <Unit filename="src/lua/lua_Ref.cpp" />
+ <Unit filename="src/lua/lua_Ref.h" />
+ <Unit filename="src/lua/lua_RenderState.cpp" />
+ <Unit filename="src/lua/lua_RenderState.h" />
+ <Unit filename="src/lua/lua_RenderStateAutoBinding.cpp" />
+ <Unit filename="src/lua/lua_RenderStateAutoBinding.h" />
+ <Unit filename="src/lua/lua_RenderStateBlend.cpp" />
+ <Unit filename="src/lua/lua_RenderStateBlend.h" />
+ <Unit filename="src/lua/lua_RenderStateStateBlock.cpp" />
+ <Unit filename="src/lua/lua_RenderStateStateBlock.h" />
+ <Unit filename="src/lua/lua_RenderTarget.cpp" />
+ <Unit filename="src/lua/lua_RenderTarget.h" />
+ <Unit filename="src/lua/lua_Scene.cpp" />
+ <Unit filename="src/lua/lua_Scene.h" />
+ <Unit filename="src/lua/lua_SceneDebugFlags.cpp" />
+ <Unit filename="src/lua/lua_SceneDebugFlags.h" />
+ <Unit filename="src/lua/lua_ScreenDisplayer.cpp" />
+ <Unit filename="src/lua/lua_ScreenDisplayer.h" />
+ <Unit filename="src/lua/lua_ScriptController.cpp" />
+ <Unit filename="src/lua/lua_ScriptController.h" />
+ <Unit filename="src/lua/lua_ScriptTarget.cpp" />
+ <Unit filename="src/lua/lua_ScriptTarget.h" />
+ <Unit filename="src/lua/lua_Slider.cpp" />
+ <Unit filename="src/lua/lua_Slider.h" />
+ <Unit filename="src/lua/lua_SpriteBatch.cpp" />
+ <Unit filename="src/lua/lua_SpriteBatch.h" />
+ <Unit filename="src/lua/lua_Technique.cpp" />
+ <Unit filename="src/lua/lua_Technique.h" />
+ <Unit filename="src/lua/lua_TextBox.cpp" />
+ <Unit filename="src/lua/lua_TextBox.h" />
+ <Unit filename="src/lua/lua_Texture.cpp" />
+ <Unit filename="src/lua/lua_Texture.h" />
+ <Unit filename="src/lua/lua_TextureFilter.cpp" />
+ <Unit filename="src/lua/lua_TextureFilter.h" />
+ <Unit filename="src/lua/lua_TextureFormat.cpp" />
+ <Unit filename="src/lua/lua_TextureFormat.h" />
+ <Unit filename="src/lua/lua_TextureSampler.cpp" />
+ <Unit filename="src/lua/lua_TextureSampler.h" />
+ <Unit filename="src/lua/lua_TextureWrap.cpp" />
+ <Unit filename="src/lua/lua_TextureWrap.h" />
+ <Unit filename="src/lua/lua_Theme.cpp" />
+ <Unit filename="src/lua/lua_Theme.h" />
+ <Unit filename="src/lua/lua_ThemeSideRegions.cpp" />
+ <Unit filename="src/lua/lua_ThemeSideRegions.h" />
+ <Unit filename="src/lua/lua_ThemeStyle.cpp" />
+ <Unit filename="src/lua/lua_ThemeStyle.h" />
+ <Unit filename="src/lua/lua_ThemeThemeImage.cpp" />
+ <Unit filename="src/lua/lua_ThemeThemeImage.h" />
+ <Unit filename="src/lua/lua_ThemeUVs.cpp" />
+ <Unit filename="src/lua/lua_ThemeUVs.h" />
+ <Unit filename="src/lua/lua_Touch.cpp" />
+ <Unit filename="src/lua/lua_Touch.h" />
+ <Unit filename="src/lua/lua_TouchTouchEvent.cpp" />
+ <Unit filename="src/lua/lua_TouchTouchEvent.h" />
+ <Unit filename="src/lua/lua_Transform.cpp" />
+ <Unit filename="src/lua/lua_Transform.h" />
+ <Unit filename="src/lua/lua_TransformListener.cpp" />
+ <Unit filename="src/lua/lua_TransformListener.h" />
+ <Unit filename="src/lua/lua_Uniform.cpp" />
+ <Unit filename="src/lua/lua_Uniform.h" />
+ <Unit filename="src/lua/lua_Vector2.cpp" />
+ <Unit filename="src/lua/lua_Vector2.h" />
+ <Unit filename="src/lua/lua_Vector3.cpp" />
+ <Unit filename="src/lua/lua_Vector3.h" />
+ <Unit filename="src/lua/lua_Vector4.cpp" />
+ <Unit filename="src/lua/lua_Vector4.h" />
+ <Unit filename="src/lua/lua_VertexAttributeBinding.cpp" />
+ <Unit filename="src/lua/lua_VertexAttributeBinding.h" />
+ <Unit filename="src/lua/lua_VertexFormat.cpp" />
+ <Unit filename="src/lua/lua_VertexFormat.h" />
+ <Unit filename="src/lua/lua_VertexFormatElement.cpp" />
+ <Unit filename="src/lua/lua_VertexFormatElement.h" />
+ <Unit filename="src/lua/lua_VertexFormatUsage.cpp" />
+ <Unit filename="src/lua/lua_VertexFormatUsage.h" />
+ <Unit filename="src/lua/lua_VerticalLayout.cpp" />
+ <Unit filename="src/lua/lua_VerticalLayout.h" />
+ <Unit filename="src/lua/lua_all_bindings.cpp" />
+ <Unit filename="src/lua/lua_all_bindings.h" />
+ <Extensions>
+ <code_completion />
+ <debugger />
+ </Extensions>
+ </Project>
+</CodeBlocks_project_file>
View
39 gameplay/src/Animation.cpp
@@ -15,17 +15,18 @@
namespace gameplay
{
-Animation::Animation(const char* id, AnimationTarget* target, int propertyId, unsigned int keyCount, unsigned long* keyTimes, float* keyValues, unsigned int type)
- : _controller(Game::getInstance()->getAnimationController()), _id(id), _duration(0), _defaultClip(NULL), _clips(NULL)
+Animation::Animation(const char* id, AnimationTarget* target, int propertyId, unsigned int keyCount, unsigned int* keyTimes, float* keyValues, unsigned int type)
+ : _controller(Game::getInstance()->getAnimationController()), _id(id), _duration(0L), _defaultClip(NULL), _clips(NULL)
{
- createChannel(target, propertyId, keyCount, keyTimes, keyValues, type);
+ createChannel(target, propertyId, keyCount, keyTimes, keyValues, type);
+
// Release the animation because a newly created animation has a ref count of 1 and the channels hold the ref to animation.
release();
GP_ASSERT(getRefCount() == 1);
}
-Animation::Animation(const char* id, AnimationTarget* target, int propertyId, unsigned int keyCount, unsigned long* keyTimes, float* keyValues, float* keyInValue, float* keyOutValue, unsigned int type)
- : _controller(Game::getInstance()->getAnimationController()), _id(id), _duration(0), _defaultClip(NULL), _clips(NULL)
+Animation::Animation(const char* id, AnimationTarget* target, int propertyId, unsigned int keyCount, unsigned int* keyTimes, float* keyValues, float* keyInValue, float* keyOutValue, unsigned int type)
+ : _controller(Game::getInstance()->getAnimationController()), _id(id), _duration(0L), _defaultClip(NULL), _clips(NULL)
{
createChannel(target, propertyId, keyCount, keyTimes, keyValues, keyInValue, keyOutValue, type);
// Release the animation because a newly created animation has a ref count of 1 and the channels hold the ref to animation.
@@ -34,7 +35,7 @@ Animation::Animation(const char* id, AnimationTarget* target, int propertyId, un
}
Animation::Animation(const char* id)
- : _controller(Game::getInstance()->getAnimationController()), _id(id), _duration(0), _defaultClip(NULL), _clips(NULL)
+ : _controller(Game::getInstance()->getAnimationController()), _id(id), _duration(0L), _defaultClip(NULL), _clips(NULL)
{
}
@@ -55,9 +56,9 @@ Animation::~Animation()
if (_clips)
{
std::vector<AnimationClip*>::iterator clipIter = _clips->begin();
-
+
while (clipIter != _clips->end())
- {
+ {
AnimationClip* clip = *clipIter;
GP_ASSERT(clip);
if (clip->isClipStateBitSet(AnimationClip::CLIP_IS_PLAYING_BIT))
@@ -127,7 +128,7 @@ void Animation::createClips(const char* url)
Properties* pAnimation = (strlen(properties->getNamespace()) > 0) ? properties : properties->getNextNamespace();
GP_ASSERT(pAnimation);
-
+
int frameCount = pAnimation->getInt("frameCount");
if (frameCount <= 0)
GP_ERROR("The animation's frame count must be greater than 0.");
@@ -180,7 +181,7 @@ void Animation::play(const char* clipId)
{
if (_defaultClip == NULL)
createDefaultClip();
-
+
_defaultClip->play();
}
else
@@ -245,9 +246,9 @@ void Animation::createDefaultClip()
void Animation::createClips(Properties* animationProperties, unsigned int frameCount)
{
GP_ASSERT(animationProperties);
-
+
Properties* pClip = animationProperties->getNextNamespace();
-
+
while (pClip != NULL && std::strcmp(pClip->getNamespace(), "clip") == 0)
{
int begin = pClip->getInt("begin");
@@ -310,7 +311,7 @@ AnimationClip* Animation::findClip(const char* id) const
return NULL;
}
-Animation::Channel* Animation::createChannel(AnimationTarget* target, int propertyId, unsigned int keyCount, unsigned long* keyTimes, float* keyValues, unsigned int type)
+Animation::Channel* Animation::createChannel(AnimationTarget* target, int propertyId, unsigned int keyCount, unsigned int* keyTimes, float* keyValues, unsigned int type)
{
GP_ASSERT(target);
GP_ASSERT(keyTimes);
@@ -324,7 +325,7 @@ Animation::Channel* Animation::createChannel(AnimationTarget* target, int proper
if (target->_targetType == AnimationTarget::TRANSFORM)
setTransformRotationOffset(curve, propertyId);
- unsigned long lowest = keyTimes[0];
+ unsigned int lowest = keyTimes[0];
unsigned long duration = keyTimes[keyCount-1] - lowest;
float* normalizedKeyTimes = new float[keyCount];
@@ -352,7 +353,7 @@ Animation::Channel* Animation::createChannel(AnimationTarget* target, int proper
return channel;
}
-Animation::Channel* Animation::createChannel(AnimationTarget* target, int propertyId, unsigned int keyCount, unsigned long* keyTimes, float* keyValues, float* keyInValue, float* keyOutValue, unsigned int type)
+Animation::Channel* Animation::createChannel(AnimationTarget* target, int propertyId, unsigned int keyCount, unsigned int* keyTimes, float* keyValues, float* keyInValue, float* keyOutValue, unsigned int type)
{
GP_ASSERT(target);
GP_ASSERT(keyTimes);
@@ -365,12 +366,12 @@ Animation::Channel* Animation::createChannel(AnimationTarget* target, int proper
GP_ASSERT(curve);
if (target->_targetType == AnimationTarget::TRANSFORM)
setTransformRotationOffset(curve, propertyId);
-
+
unsigned long lowest = keyTimes[0];
unsigned long duration = keyTimes[keyCount-1] - lowest;
float* normalizedKeyTimes = new float[keyCount];
-
+
normalizedKeyTimes[0] = 0.0f;
curve->setPoint(0, normalizedKeyTimes[0], keyValues, (Curve::InterpolationType) type, keyInValue, keyOutValue);
@@ -398,7 +399,7 @@ void Animation::addChannel(Channel* channel)
{
GP_ASSERT(channel);
_channels.push_back(channel);
-
+
if (channel->_duration > _duration)
_duration = channel->_duration;
}
@@ -409,7 +410,7 @@ void Animation::removeChannel(Channel* channel)
while (itr != _channels.end())
{
Animation::Channel* chan = *itr;
- if (channel == chan)
+ if (channel == chan)
{
_channels.erase(itr);
return;
View
58 gameplay/src/Animation.h
@@ -27,14 +27,14 @@ class Animation : public Ref
friend class Bundle;
public:
-
+
/**
* Gets the Animation's ID.
- *
+ *
* @return The Animation's ID.
*/
const char* getId() const;
-
+
/**
* Gets the Animation's duration.
*
@@ -43,29 +43,29 @@ class Animation : public Ref
unsigned long getDuration() const;
/**
- * Creates an AnimationClip from the Properties object defined at the specified URL,
+ * Creates an AnimationClip from the Properties object defined at the specified URL,
* where the URL is of the format "<file-path>.<extension>#<namespace-id>/<namespace-id>/.../<namespace-id>"
* (and "#<namespace-id>/<namespace-id>/.../<namespace-id>" is optional).
- *
+ *
* @param url The URL pointing to the Properties object containing the clip definitions.
*/
void createClips(const char* url);
-
+
/**
* Creates an AnimationClip from the Animation.
- *
+ *
* @param id The ID to the give the AnimationClip.
* @param start The time (in milliseconds) that the AnimationClip will begin from.
* @param end The time (in milliseconds) that the AnimationClip will end.
- *
+ *
* @return The newly created AnimationClip; NULL if an AnimationClip already exists with the same ID.
* @script{create}
*/
AnimationClip* createClip(const char* id, unsigned long start, unsigned long end);
-
+
/**
* Finds the AnimationClip with the specified name. If NULL, gets the default clip.
- *
+ *
* @param clipId The ID of the AnimationClip to get.
*
* @return The AnimationClip with the specified ID; NULL if an AnimationClip with the given ID is not found.
@@ -83,22 +83,22 @@ class Animation : public Ref
* Returns the number of animation clips in this animation.
*/
unsigned int getClipCount() const;
-
+
/**
- * Plays the AnimationClip with the specified name.
+ * Plays the AnimationClip with the specified name.
*
* @param clipId The ID of the AnimationClip to play. If NULL, plays the default clip.
- */
+ */
void play(const char* clipId = NULL);
/**
- * Stops the AnimationClip with the specified name.
- *
+ * Stops the AnimationClip with the specified name.
+ *
* @param clipId The ID of the AnimationClip to stop. If NULL, stops the default clip.
*/
void stop(const char* clipId = NULL);
- /**
+ /**
* Pauses the AnimationClip with the specified name.
*
* @param clipId The ID of the AnimationClip to pause. If NULL, pauses the default clip.
@@ -109,7 +109,7 @@ class Animation : public Ref
* Returns true if this animation targets the given AnimationTarget.
*/
bool targets(AnimationTarget* target) const;
-
+
private:
/**
@@ -148,12 +148,12 @@ class Animation : public Ref
/**
* Constructor.
*/
- Animation(const char* id, AnimationTarget* target, int propertyId, unsigned int keyCount, unsigned long* keyTimes, float* keyValues, float* keyInValue, float* keyOutValue, unsigned int type);
-
+ Animation(const char* id, AnimationTarget* target, int propertyId, unsigned int keyCount, unsigned int* keyTimes, float* keyValues, float* keyInValue, float* keyOutValue, unsigned int type);
+
/**
* Constructor.
*/
- Animation(const char* id, AnimationTarget* target, int propertyId, unsigned int keyCount, unsigned long* keyTimes, float* keyValues, unsigned int type);
+ Animation(const char* id, AnimationTarget* target, int propertyId, unsigned int keyCount, unsigned int* keyTimes, float* keyValues, unsigned int type);
/**
* Constructor.
@@ -164,12 +164,12 @@ class Animation : public Ref
* Destructor.
*/
~Animation();
-
+
/**
* Hidden copy assignment operator.
*/
Animation& operator=(const Animation&);
-
+
/**
* Creates the default clip.
*/
@@ -192,13 +192,13 @@ class Animation : public Ref
/**
* Creates a channel within this animation.
- */
- Channel* createChannel(AnimationTarget* target, int propertyId, unsigned int keyCount, unsigned long* keyTimes, float* keyValues, unsigned int type);
+ */
+ Channel* createChannel(AnimationTarget* target, int propertyId, unsigned int keyCount, unsigned int* keyTimes, float* keyValues, unsigned int type);
/**
* Creates a channel within this animation.
*/
- Channel* createChannel(AnimationTarget* target, int propertyId, unsigned int keyCount, unsigned long* keyTimes, float* keyValues, float* keyInValue, float* keyOutValue, unsigned int type);
+ Channel* createChannel(AnimationTarget* target, int propertyId, unsigned int keyCount, unsigned int* keyTimes, float* keyValues, float* keyInValue, float* keyOutValue, unsigned int type);
/**
* Adds a channel to the animation.
@@ -217,17 +217,17 @@ class Animation : public Ref
/**
* Clones this animation.
- *
+ *
* @param channel The channel to clone and add to the animation.
* @param target The target of the animation.
- *
+ *
* @return The newly created animation.
*/
Animation* clone(Channel* channel, AnimationTarget* target);
-
+
AnimationController* _controller; // The AnimationController that this Animation will run on.
std::string _id; // The Animation's ID.
- unsigned long _duration; // the length of the animation (in milliseconds).
+ unsigned long _duration; // the length of the animation (in milliseconds).
std::vector<Channel*> _channels; // The channels within this Animation.
AnimationClip* _defaultClip; // The Animation's default clip.
std::vector<AnimationClip*>* _clips; // All the clips created from this Animation.
View
50 gameplay/src/AnimationTarget.cpp
@@ -31,7 +31,7 @@ AnimationTarget::~AnimationTarget()
}
}
-Animation* AnimationTarget::createAnimation(const char* id, int propertyId, unsigned int keyCount, unsigned long* keyTimes, float* keyValues, Curve::InterpolationType type)
+Animation* AnimationTarget::createAnimation(const char* id, int propertyId, unsigned int keyCount, unsigned int* keyTimes, float* keyValues, Curve::InterpolationType type)
{
GP_ASSERT(type != Curve::BEZIER && type != Curve::HERMITE);
GP_ASSERT(keyCount >= 1 && keyTimes && keyValues);
@@ -41,7 +41,7 @@ Animation* AnimationTarget::createAnimation(const char* id, int propertyId, unsi
return animation;
}
-Animation* AnimationTarget::createAnimation(const char* id, int propertyId, unsigned int keyCount, unsigned long* keyTimes, float* keyValues, float* keyInValue, float* keyOutValue, Curve::InterpolationType type)
+Animation* AnimationTarget::createAnimation(const char* id, int propertyId, unsigned int keyCount, unsigned int* keyTimes, float* keyValues, float* keyInValue, float* keyOutValue, Curve::InterpolationType type)
{
GP_ASSERT(keyCount >= 1 && keyTimes && keyValues && keyInValue && keyOutValue);
Animation* animation = new Animation(id, this, propertyId, keyCount, keyTimes, keyValues, keyInValue, keyOutValue, type);
@@ -73,9 +73,9 @@ Animation* AnimationTarget::createAnimationFromTo(const char* id, int propertyId
memcpy(keyValues, from, sizeof(float) * propertyComponentCount);
memcpy(keyValues + propertyComponentCount, to, sizeof(float) * propertyComponentCount);
- unsigned long* keyTimes = new unsigned long[2];
+ unsigned int* keyTimes = new unsigned int[2];
keyTimes[0] = 0;
- keyTimes[1] = duration;
+ keyTimes[1] = (unsigned int)duration;
Animation* animation = createAnimation(id, propertyId, 2, keyTimes, keyValues, type);
@@ -99,9 +99,9 @@ Animation* AnimationTarget::createAnimationFromBy(const char* id, int propertyId
convertByValues(propertyId, propertyComponentCount, from, by);
memcpy(keyValues + propertyComponentCount, by, sizeof(float) * propertyComponentCount);
- unsigned long* keyTimes = new unsigned long[2];
+ unsigned int* keyTimes = new unsigned int[2];
keyTimes[0] = 0;
- keyTimes[1] = duration;
+ keyTimes[1] = (unsigned int)duration;
Animation* animation = createAnimation(id, propertyId, 2, keyTimes, keyValues, type);
@@ -119,14 +119,14 @@ Animation* AnimationTarget::createAnimation(const char* id, Properties* animatio
GP_ERROR("Invalid animation namespace '%s'.", animationProperties->getNamespace());
return NULL;
}
-
+
const char* propertyIdStr = animationProperties->getString("property");
if (propertyIdStr == NULL)
{
GP_ERROR("Attribute 'property' must be specified for an animation.");
return NULL;
}
-
+
// Get animation target property id
int propertyId = AnimationTarget::getPropertyId(_targetType, propertyIdStr);
if (propertyId == -1)
@@ -134,7 +134,7 @@ Animation* AnimationTarget::createAnimation(const char* id, Properties* animatio
GP_ERROR("Property ID is invalid.");
return NULL;
}
-
+
unsigned int keyCount = animationProperties->getInt("keyCount");
if (keyCount == 0)
{
@@ -148,26 +148,26 @@ Animation* AnimationTarget::createAnimation(const char* id, Properties* animatio
GP_ERROR("Attribute 'keyTimes' must be specified for an animation.");
return NULL;
}
-
+
const char* keyValuesStr = animationProperties->getString("keyValues");
if (keyValuesStr == NULL)
{
GP_ERROR("Attribute 'keyValues' must be specified for an animation.");
return NULL;
}
-
+
const char* curveStr = animationProperties->getString("curve");
if (curveStr == NULL)
{
GP_ERROR("Attribute 'curve' must be specified for an animation.");
return NULL;
}
-
+
char delimeter = ' ';
size_t startOffset = 0;
size_t endOffset = std::string::npos;
-
- unsigned long* keyTimes = new unsigned long[keyCount];
+
+ unsigned int* keyTimes = new unsigned int[keyCount];
for (size_t i = 0; i < keyCount; i++)
{
endOffset = static_cast<std::string>(keyTimesStr).find_first_of(delimeter, startOffset);
@@ -184,18 +184,18 @@ Animation* AnimationTarget::createAnimation(const char* id, Properties* animatio
startOffset = 0;
endOffset = std::string::npos;
-
+
int componentCount = getAnimationPropertyComponentCount(propertyId);
GP_ASSERT(componentCount > 0);
-
+
unsigned int components = keyCount * componentCount;
-
+
float* keyValues = new float[components];
for (unsigned int i = 0; i < components; i++)
{
endOffset = static_cast<std::string>(keyValuesStr).find_first_of(delimeter, startOffset);
if (endOffset != std::string::npos)
- {
+ {
keyValues[i] = std::atof(static_cast<std::string>(keyValuesStr).substr(startOffset, endOffset - startOffset).c_str());
}
else
@@ -216,7 +216,7 @@ Animation* AnimationTarget::createAnimation(const char* id, Properties* animatio
{
endOffset = static_cast<std::string>(keyInStr).find_first_of(delimeter, startOffset);
if (endOffset != std::string::npos)
- {
+ {
keyIn[i] = std::atof(static_cast<std::string>(keyInStr).substr(startOffset, endOffset - startOffset).c_str());
}
else
@@ -226,11 +226,11 @@ Animation* AnimationTarget::createAnimation(const char* id, Properties* animatio
startOffset = endOffset + 1;
}
}
-
+
const char* keyOutStr = animationProperties->getString("keyOut");
float* keyOut = NULL;
if (keyOutStr)
- {
+ {
keyOut = new float[components];
startOffset = 0;
endOffset = std::string::npos;
@@ -238,7 +238,7 @@ Animation* AnimationTarget::createAnimation(const char* id, Properties* animatio
{
endOffset = static_cast<std::string>(keyOutStr).find_first_of(delimeter, startOffset);
if (endOffset != std::string::npos)
- {
+ {
keyOut[i] = std::atof(static_cast<std::string>(keyOutStr).substr(startOffset, endOffset - startOffset).c_str());
}
else
@@ -325,7 +325,7 @@ Animation* AnimationTarget::getAnimation(const char* id) const
int AnimationTarget::getPropertyId(TargetType type, const char* propertyIdStr)
{
GP_ASSERT(propertyIdStr);
-
+
if (type == AnimationTarget::TRANSFORM)
{
if (strcmp(propertyIdStr, "ANIMATE_SCALE") == 0)
@@ -467,7 +467,7 @@ void AnimationTarget::cloneInto(AnimationTarget* target, NodeCloneContext &conte
void AnimationTarget::convertByValues(unsigned int propertyId, unsigned int componentCount, float* from, float* by)
{
if (_targetType == AnimationTarget::TRANSFORM)
- {
+ {
switch(propertyId)
{
case Transform::ANIMATE_SCALE:
@@ -497,7 +497,7 @@ void AnimationTarget::convertByValues(unsigned int propertyId, unsigned int comp
convertQuaternionByValues(from, by);
convertByValues(from + 4, by + 4, 3);
break;
- }
+ }
case Transform::ANIMATE_SCALE_ROTATE_TRANSLATE:
{
convertScaleByValues(from, by, 3);
View
46 gameplay/src/AnimationTarget.h
@@ -23,9 +23,9 @@ class AnimationTarget
public:
/**
- * Creates an animation on this target from a set of key value and key time pairs.
+ * Creates an animation on this target from a set of key value and key time pairs.
* Cannot use Curve::BEZIER or CURVE::HERMITE as the interpolation type since they require tangents/control points.
- *
+ *
* @param id The ID of the animation.
* @param propertyId The property on this target to animate.
* @param keyCount The number of keyframes in the animation. Must be greater than one.
@@ -35,11 +35,11 @@ class AnimationTarget
*
* @return The newly created animation.
*/
- Animation* createAnimation(const char* id, int propertyId, unsigned int keyCount, unsigned long* keyTimes, float* keyValues, Curve::InterpolationType type);
+ Animation* createAnimation(const char* id, int propertyId, unsigned int keyCount, unsigned int* keyTimes, float* keyValues, Curve::InterpolationType type);
/**
* Creates an animation on this target from a set of key value and key time pairs.
- *
+ *
* @param id The ID of the animation.
* @param propertyId The property on this target to animate.
* @param keyCount The number of keyframes in the animation. Must be greater than one.
@@ -51,13 +51,13 @@ class AnimationTarget
*
* @return The newly created animation.
*/
- Animation* createAnimation(const char* id, int propertyId, unsigned int keyCount, unsigned long* keyTimes, float* keyValues, float* keyInValue, float* keyOutValue, Curve::InterpolationType type);
+ Animation* createAnimation(const char* id, int propertyId, unsigned int keyCount, unsigned int* keyTimes, float* keyValues, float* keyInValue, float* keyOutValue, Curve::InterpolationType type);
/**
- * Creates an animation on this target using the data from the Properties object defined at the specified URL,
+ * Creates an animation on this target using the data from the Properties object defined at the specified URL,
* where the URL is of the format "<file-path>.<extension>#<namespace-id>/<namespace-id>/.../<namespace-id>"
- * (and "#<namespace-id>/<namespace-id>/.../<namespace-id>" is optional).
- *
+ * (and "#<namespace-id>/<namespace-id>/.../<namespace-id>" is optional).
+ *
* @param id The ID of the animation.
* @param url The URL pointing to the Properties object defining the animation data.
*
@@ -66,8 +66,8 @@ class AnimationTarget
Animation* createAnimation(const char* id, const char* url);
/**
- * Creates an animation on this target using the data from the given properties object.
- *
+ * Creates an animation on this target using the data from the given properties object.
+ *
* @param id The ID of the animation.
* @param animationProperties The properties object defining the animation data.
*
@@ -109,14 +109,14 @@ class AnimationTarget
* Destroys the animation with the specified ID. Destroys the first animation if ID is NULL.
*
* @param id The ID of the animation to destroy.
- */
+ */
void destroyAnimation(const char* id = NULL);
/**
* Abstract method to return the property component count of the given property ID on the AnimationTarget.
- *
+ *
* @param propertyId The ID of the property on the AnimationTarget to obtain the component count for.
- *
+ *
* @return The property component count of the given property.
*/
virtual unsigned int getAnimationPropertyComponentCount(int propertyId) const = 0;
@@ -131,14 +131,14 @@ class AnimationTarget
/**
* Abstract method for setting the animation property value for the given property ID on the AnimationTarget.
- *
+ *
* @param propertyId The ID of the property on the AnimationTarget to set the animation property value on.
* @param value The container to set the animation property value in.
* @param blendWeight The blend weight.
*/
virtual void setAnimationPropertyValue(int propertyId, AnimationValue* value, float blendWeight = 1.0f) = 0;
- /**
+ /**
* Gets the animation with the specified ID. If the ID is NULL, this function will return the first animation it finds.
*
* @param id The name of the animation to get.
@@ -146,9 +146,9 @@ class AnimationTarget
Animation* getAnimation(const char* id = NULL) const;
protected:
-
+
/**
- * The type of animation target.
+ * The type of animation target.
*/
enum TargetType
{
@@ -168,14 +168,14 @@ class AnimationTarget
/**
* Adds the given animation channel to this animation target.
- *
+ *
* @param channel The animation channel to add.
*/
void addChannel(Animation::Channel* channel);
/**
* Removes the given animation channel from this animation target.
- *
+ *
* @param channel The animation channel to delete.
*/
void removeChannel(Animation::Channel* channel);
@@ -189,14 +189,14 @@ class AnimationTarget
/**
* Copies data from this animation target into the given target for the purpose of cloning.
- *
+ *
* @param target The target to copy into.
* @param context The clone context.
*/
void cloneInto(AnimationTarget* target, NodeCloneContext &context) const;
/**
- * The target's type.
+ * The target's type.
*
* @see TargetType::SCALAR
* @see TargetType::TRANSFORM
@@ -212,7 +212,7 @@ class AnimationTarget
/**
* Gets the TargetType's property ID value for the specified property ID string.
- *
+ *
* @param type The TargetType of the AnimationTarget.
* @param propertyIdStr The property ID string.
* @return The property ID value for teh property ID string; -1 if the propertyIdStr does not exist
@@ -241,7 +241,7 @@ class AnimationTarget
void convertByValues(float* from, float* by, unsigned int componentCount);
std::vector<Animation::Channel*>* _animationChannels; // Collection of all animation channels that target the AnimationTarget
-
+
};
}
View
32 gameplay/src/Bundle.cpp
@@ -393,7 +393,7 @@ Scene* Bundle::loadScene(const char* id)
return NULL;
}
}
-
+
Scene* scene = Scene::create();
scene->setId(getIdFromOffset());
@@ -505,7 +505,7 @@ Node* Bundle::loadNode(const char* id, Scene* sceneContext)
SAFE_DELETE(_trackedNodes);
return NULL;
}
-
+
// Read the number of animations in this object.
unsigned int animationCount;
if (!read(&animationCount))
@@ -573,8 +573,8 @@ Node* Bundle::loadNode(const char* id, Scene* sceneContext)
SAFE_DELETE(_trackedNodes);
return NULL;
}
-
- // Skip the animation channel (passing a target attribute of
+
+ // Skip the animation channel (passing a target attribute of
// 0 causes the animation to not be created).
readAnimationChannelData(NULL, id.c_str(), NULL, 0);
}
@@ -636,7 +636,7 @@ bool Bundle::skipNode()
GP_ERROR("Failed to skip node type for node '%s'.", id);
return false;
}
-
+
// Skip over the node's transform and parent ID.
if (fseek(_file, sizeof(float) * 16, SEEK_CUR) != 0)
{
@@ -660,7 +660,7 @@ bool Bundle::skipNode()
return false;
}
}
-
+
// Skip over the node's camera, light, and model attachments.
Camera* camera = readCamera(); SAFE_RELEASE(camera);
Light* light = readLight(); SAFE_RELEASE(light);
@@ -1109,7 +1109,7 @@ void Bundle::resolveJointReferences(Scene* sceneContext, Node* nodeContext)
Node* node = rootJoint;
GP_ASSERT(node);
Node* parent = node->getParent();
-
+
std::vector<Node*> loadedNodes;
while (true)
{
@@ -1151,7 +1151,7 @@ void Bundle::resolveJointReferences(Scene* sceneContext, Node* nodeContext)
return;
}
std::string parentID = readString(_file);
-
+
if (!parentID.empty())
nodeId = parentID;
else
@@ -1259,11 +1259,11 @@ Animation* Bundle::readAnimationChannelData(Animation* animation, const char* id
{
GP_ASSERT(id);
- std::vector<unsigned long> keyTimes;
+ std::vector<unsigned int> keyTimes;
std::vector<float> values;
std::vector<float> tangentsIn;
std::vector<float> tangentsOut;
- std::vector<unsigned long> interpolation;
+ std::vector<unsigned int> interpolation;
// Length of the arrays.
unsigned int keyTimesCount;
@@ -1278,28 +1278,28 @@ Animation* Bundle::readAnimationChannelData(Animation* animation, const char* id
GP_ERROR("Failed to read key times for animation '%s'.", id);
return NULL;
}
-
+
// Read key values.
if (!readArray(&valuesCount, &values))
{
GP_ERROR("Failed to read key values for animation '%s'.", id);
return NULL;
}
-
+
// Read in-tangents.
if (!readArray(&tangentsInCount, &tangentsIn))
{
GP_ERROR("Failed to read in tangents for animation '%s'.", id);
return NULL;
}
-
+
// Read out-tangents.
if (!readArray(&tangentsOutCount, &tangentsOut))
{
GP_ERROR("Failed to read out tangents for animation '%s'.", id);
return NULL;
}
-
+
// Read interpolations.
if (!readArray(&interpolationCount, &interpolation, sizeof(unsigned int)))
{
@@ -1519,7 +1519,7 @@ Bundle::MeshData* Bundle::readMeshData()
partData->primitiveType = (Mesh::PrimitiveType)pType;
partData->indexFormat = (Mesh::IndexFormat)iFormat;
-
+
unsigned int indexSize = 0;
switch (partData->indexFormat)
{
@@ -1683,7 +1683,7 @@ Font* Bundle::loadFont(const char* id)
SAFE_DELETE_ARRAY(glyphs);
return NULL;
}
-
+
// Read texture data.
unsigned char* textureData = new unsigned char[textureByteCount];
if (fread(textureData, 1, textureByteCount, _file) != textureByteCount)
View
22 gameplay/src/Game.cpp
@@ -18,12 +18,12 @@ static Game* __gameInstance = NULL;
double Game::_pausedTimeLast = 0.0;
double Game::_pausedTimeTotal = 0.0;
-Game::Game()
+Game::Game()
: _initialized(false), _state(UNINITIALIZED), _pausedCount(0),
- _frameLastFPS(0), _frameCount(0), _frameRate(0),
+ _frameLastFPS(0), _frameCount(0), _frameRate(0),
_clearDepth(1.0f), _clearStencil(0), _properties(NULL),
- _animationController(NULL), _audioController(NULL),
- _physicsController(NULL), _aiController(NULL), _audioListener(NULL),
+ _animationController(NULL), _audioController(NULL),
+ _physicsController(NULL), _aiController(NULL), _audioListener(NULL),
_gamepads(NULL), _timeEvents(NULL), _scriptController(NULL), _scriptListeners(NULL)
{
GP_ASSERT(__gameInstance == NULL);
@@ -111,7 +111,7 @@ bool Game::startup()
setViewport(Rectangle(0.0f, 0.0f, (float)_width, (float)_height));
RenderState::initialize();
FrameBuffer::initialize();
-
+
// Load any gamepads, ui or physical.
loadGamepads();
@@ -183,7 +183,7 @@ void Game::shutdown()
Platform::signalShutdown();
finalize();
-
+
std::vector<Gamepad*>::iterator itr = _gamepads->begin();
std::vector<Gamepad*>::iterator end = _gamepads->end();
while (itr != end)
@@ -193,7 +193,7 @@ void Game::shutdown()
}
_gamepads->clear();
SAFE_DELETE(_gamepads);
-
+
_scriptController->finalizeGame();
_animationController->finalize();
@@ -294,7 +294,7 @@ void Game::frame()
// Fire time events to scheduled TimeListeners
fireTimeEvents(frameTime);
-
+
// Update the physics.
_physicsController->update(elapsedTime);
@@ -371,7 +371,7 @@ void Game::updateOnce()
void Game::setViewport(const Rectangle& viewport)
{
_viewport = viewport;
- glViewport((GLuint)viewport.x, (GLuint)viewport.y, (GLuint)viewport.width, (GLuint)viewport.height);
+ glViewport((GLuint)viewport.x, (GLuint)viewport.y, (GLuint)viewport.width, (GLuint)viewport.height);
}
void Game::clear(ClearFlags flags, const Vector4& clearColor, float clearDepth, int clearStencil)
@@ -400,7 +400,7 @@ void Game::clear(ClearFlags flags, const Vector4& clearColor, float clearDepth,
bits |= GL_DEPTH_BUFFER_BIT;
// We need to explicitly call the static enableDepthWrite() method on StateBlock
- // to ensure depth writing is enabled before clearing the depth buffer (and to
+ // to ensure depth writing is enabled before clearing the depth buffer (and to
// update the global StateBlock render state to reflect this).
RenderState::StateBlock::enableDepthWrite();
}
@@ -555,7 +555,7 @@ void Game::loadConfig()
if (FileSystem::fileExists("game.config"))
{
_properties = Properties::create("game.config");
-
+
// Load filesystem aliases.
Properties* aliases = _properties->getNamespace("aliases", true);
if (aliases)
View
16 gameplay/src/lua/lua_AnimationTarget.cpp
@@ -13,7 +13,7 @@ namespace gameplay
void luaRegister_AnimationTarget()
{
- const luaL_Reg lua_members[] =
+ const luaL_Reg lua_members[] =
{
{"createAnimation", lua_AnimationTarget_createAnimation},
{"createAnimationFromBy", lua_AnimationTarget_createAnimationFromBy},
@@ -129,7 +129,7 @@ int lua_AnimationTarget_createAnimation(lua_State* state)
unsigned int param3 = (unsigned int)luaL_checkunsigned(state, 4);
// Get parameter 4 off the stack.
- ScriptUtil::LuaArray<unsigned long> param4 = ScriptUtil::getUnsignedLongPointer(5);
+ ScriptUtil::LuaArray<unsigned int> param4 = ScriptUtil::getUnsignedIntPointer(5);
// Get parameter 5 off the stack.
ScriptUtil::LuaArray<float> param5 = ScriptUtil::getFloatPointer(6);
@@ -183,7 +183,7 @@ int lua_AnimationTarget_createAnimation(lua_State* state)
unsigned int param3 = (unsigned int)luaL_checkunsigned(state, 4);
// Get parameter 4 off the stack.
- ScriptUtil::LuaArray<unsigned long> param4 = ScriptUtil::getUnsignedLongPointer(5);
+ ScriptUtil::LuaArray<unsigned int> param4 = ScriptUtil::getUnsignedIntPointer(5);
// Get parameter 5 off the stack.
ScriptUtil::LuaArray<float> param5 = ScriptUtil::getFloatPointer(6);
@@ -385,7 +385,7 @@ int lua_AnimationTarget_destroyAnimation(lua_State* state)
{
AnimationTarget* instance = getInstance(state);
instance->destroyAnimation();
-
+
return 0;
}
else