Permalink
Browse files

Added kazmath to git

  • Loading branch information...
1 parent 00bbe4e commit 471ff83ae753eb8cc572b8eea0ce9287078ca366 @Kazade committed Aug 14, 2008
Showing with 2,479 additions and 0 deletions.
  1. +7 −0 CMakeLists.txt
  2. +74 −0 build-linux/kazmath.cbp
  3. +68 −0 build-linux/kazmath.depend
  4. +16 −0 build-linux/kazmath.layout
  5. +27 −0 src/CMakeLists.txt
  6. +213 −0 src/mat3.c
  7. +57 −0 src/mat3.h
  8. +442 −0 src/mat4.c
  9. +63 −0 src/mat4.h
  10. +156 −0 src/plane.c
  11. +56 −0 src/plane.h
  12. +468 −0 src/quaternion.c
  13. +137 −0 src/quaternion.h
  14. +14 −0 src/utility.c
  15. +50 −0 src/utility.h
  16. +70 −0 src/vec2.c
  17. +38 −0 src/vec2.h
  18. +245 −0 src/vec3.c
  19. +62 −0 src/vec3.h
  20. +154 −0 src/vec4.c
  21. +62 −0 src/vec4.h
View
@@ -0,0 +1,7 @@
+PROJECT(Kazmath)
+
+SET(CMAKE_C_FLAGS "-std=c99")
+SET(CMAKE_INSTALL_PREFIX, "/usr")
+
+ADD_SUBDIRECTORY(src bin)
+
View
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+ <FileVersion major="1" minor="6" />
+ <Project>
+ <Option title="kazmath" />
+ <Option pch_mode="2" />
+ <Option compiler="gcc" />
+ <Build>
+ <Target title="Debug">
+ <Option output="bin/Debug/libkazmath" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj/Debug/" />
+ <Option type="3" />
+ <Option compiler="gcc" />
+ <Option createDefFile="1" />
+ <Option createStaticLib="1" />
+ <Compiler>
+ <Add option="-g" />
+ </Compiler>
+ </Target>
+ <Target title="Release">
+ <Option output="bin/Release/libkazmath" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj/Release/" />
+ <Option type="3" />
+ <Option compiler="gcc" />
+ <Option createDefFile="1" />
+ <Option createStaticLib="1" />
+ <Compiler>
+ <Add option="-O2" />
+ </Compiler>
+ <Linker>
+ <Add option="-s" />
+ </Linker>
+ </Target>
+ </Build>
+ <Compiler>
+ <Add option="-Wall" />
+ <Add option="-std=c99" />
+ </Compiler>
+ <Unit filename="../src/mat4.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/mat4.h" />
+ <Unit filename="../src/plane.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/plane.h" />
+ <Unit filename="../src/quaternion.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/quaternion.h" />
+ <Unit filename="../src/utility.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/utility.h" />
+ <Unit filename="../src/vec2.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/vec2.h" />
+ <Unit filename="../src/vec3.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/vec3.h" />
+ <Unit filename="../src/vec4.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/vec4.h" />
+ <Extensions>
+ <envvars />
+ <code_completion />
+ <debugger />
+ <lib_finder disable_auto="1" />
+ </Extensions>
+ </Project>
+</CodeBlocks_project_file>
View
@@ -0,0 +1,68 @@
+# depslib dependency file v1.0
+1207417327 source:/home/luke/Projects/KazEngine3/kazengine/src/kazmath/src/mat4.c
+ "utility.h"
+ "vec3.h"
+ "mat4.h"
+ "quaternion.h"
+ <memory.h>
+ <assert.h>
+
+1217749462 /home/luke/Projects/KazEngine3/kazengine/src/kazmath/src/utility.h
+ <math.h>
+ <stdbool.h>
+
+1217749537 /home/luke/Projects/KazEngine3/kazengine/src/kazmath/src/vec3.h
+ <assert.h>
+
+1217797533 /home/luke/Projects/KazEngine3/kazengine/src/kazmath/src/mat4.h
+ "utility.h"
+
+1207504867 /home/luke/Projects/KazEngine3/kazengine/src/kazmath/src/quaternion.h
+ "utility.h"
+
+1217796589 source:/home/luke/Projects/KazEngine3/kazengine/src/kazmath/src/plane.c
+ <assert.h>
+ "vec3.h"
+ "vec4.h"
+ "plane.h"
+
+1207417327 /home/luke/Projects/KazEngine3/kazengine/src/kazmath/src/vec4.h
+ "utility.h"
+
+1217796426 /home/luke/Projects/KazEngine3/kazengine/src/kazmath/src/plane.h
+ "utility.h"
+
+1207417327 source:/home/luke/Projects/KazEngine3/kazengine/src/kazmath/src/quaternion.c
+ <assert.h>
+ <memory.h>
+ "utility.h"
+ "mat4.h"
+ "vec3.h"
+ "quaternion.h"
+
+1207505105 source:/home/luke/Projects/KazEngine3/kazengine/src/kazmath/src/utility.c
+ "utility.h"
+
+1207417327 source:/home/luke/Projects/KazEngine3/kazengine/src/kazmath/src/vec2.c
+ <assert.h>
+ "mat4.h"
+ "vec2.h"
+ "utility.h"
+
+1207501857 /home/luke/Projects/KazEngine3/kazengine/src/kazmath/src/vec2.h
+
+1207417327 source:/home/luke/Projects/KazEngine3/kazengine/src/kazmath/src/vec3.c
+ <assert.h>
+ <memory.h>
+ "utility.h"
+ "vec4.h"
+ "mat4.h"
+ "vec3.h"
+
+1207417327 source:/home/luke/Projects/KazEngine3/kazengine/src/kazmath/src/vec4.c
+ <memory.h>
+ <assert.h>
+ "utility.h"
+ "vec4.h"
+ "mat4.h"
+
View
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_layout_file>
+ <ActiveTarget name="Debug" />
+ <File name="../src/mat4.c" open="1" top="0" tabpos="4">
+ <Cursor position="9261" topLine="288" />
+ </File>
+ <File name="../src/mat4.h" open="1" top="0" tabpos="3">
+ <Cursor position="1945" topLine="3" />
+ </File>
+ <File name="../src/plane.c" open="1" top="0" tabpos="1">
+ <Cursor position="3334" topLine="93" />
+ </File>
+ <File name="../src/plane.h" open="1" top="0" tabpos="2">
+ <Cursor position="984" topLine="6" />
+ </File>
+</CodeBlocks_layout_file>
View
@@ -0,0 +1,27 @@
+SET(KAZMATH_HEADERS
+vec2.h
+vec3.h
+vec4.h
+mat4.h
+plane.h
+utility.h
+quaternion.h
+)
+
+SET(KAZMATH_SRCS
+mat4.c
+plane.c
+vec4.c
+quaternion.c
+vec2.c
+vec3.c
+utility.c
+)
+
+#ADD_LIBRARY(Kazmath STATIC ${KAZMATH_SRCS})
+#INSTALL(TARGETS Kazmath ARCHIVE DESTINATION lib)
+
+ADD_LIBRARY(Kazmath SHARED ${KAZMATH_SRCS})
+INSTALL(TARGETS Kazmath LIBRARY DESTINATION lib)
+
+INSTALL(FILES ${KAZMATH_HEADERS} DESTINATION include/kazmath)
Oops, something went wrong.

0 comments on commit 471ff83

Please sign in to comment.