Browse files

Make cmake in kazmathxx workable from the parent directory. Remove ka…

…zmathxxv2
  • Loading branch information...
1 parent 9c182c0 commit 1f412a2ebe2eefc160a94de1b031eb28c8d40e1f @Kazade committed Apr 20, 2010
Showing with 2 additions and 60 deletions.
  1. +2 −0 kazmathxx/CMakeLists.txt
  2. +0 −60 kazmathxxv2/kazmathxx/mat4.h
View
2 kazmathxx/CMakeLists.txt
@@ -0,0 +1,2 @@
+cmake_minimum_required(VERSION 2.8)
+ADD_SUBDIRECTORY(src)
View
60 kazmathxxv2/kazmathxx/mat4.h
@@ -1,60 +0,0 @@
-#ifndef KAZMATHXX_MAT4_H
-#define KAZMATHXX_MAT4_H
-
-#ifdef __cplusplus
-
-#include <kazmath/mat4.h>
-
-namespace kazmath {
-
-class Mat4 : public kmMat4 {
- Mat4() {
- Identity();
- }
-
- Mat4(const Mat4& rhs) {
- Assign(rhs);
- }
-
- const Mat4& operator=(const Mat4& rhs) {
- return Assign(rhs);
- }
-
- const Mat4& operator*=(const Mat4& rhs) {
- return Multiply(rhs);
- }
-
- const Mat4& Identity() {
- kmMat4Identity(this);
- return *this;
- }
-
- const Mat4& Multiply(const Mat4& rhs) {
- kmMat4Multiply(this, this, &rhs);
- return *this;
- }
-
- const Mat4& Transpose() {
- kmMat4Transpose(this, this);
- return *this;
- }
-
- bool IsIdentity() const {
- return kmMat4IsIdentity(this);
- }
-
- const Mat4& Assign(const Mat4& rhs) {
- kmMat4Assign(this, &rhs);
- return *this;
- }
-};
-
-Mat4 operator*(const Mat4& lhs, const Mat4& rhs) {
- Mat4 result = lhs;
- return result.Multiply(rhs);
-}
-
-}
-
-#endif /* __cplusplus */
-#endif

0 comments on commit 1f412a2

Please sign in to comment.