diff options
author | neoraider <devnull@localhost> | 2006-10-20 14:57:05 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-10-20 14:57:05 +0200 |
commit | 1021d32f7ccb9f3f10253934fd4e5202b7382b2d (patch) | |
tree | 61dd0e93d0171a5fcc8b0fe854a2f50df52652d5 /neofx/types.h | |
parent | f5ef6536cc243acd39bf563c3d9064d1908483b3 (diff) | |
download | libneofx-1021d32f7ccb9f3f10253934fd4e5202b7382b2d.tar libneofx-1021d32f7ccb9f3f10253934fd4e5202b7382b2d.zip |
Physik-Engine angefangen.
Lightmaps implementiert.
Diffstat (limited to 'neofx/types.h')
-rw-r--r-- | neofx/types.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/neofx/types.h b/neofx/types.h index add2c88..8586545 100644 --- a/neofx/types.h +++ b/neofx/types.h @@ -1,15 +1,14 @@ #ifndef NEOFX_TYPES_H
#define NEOFX_TYPES_H
-#pragma pack(push, 2)
typedef union _MATRIX {
float m[4][4];
float f[16];
} MATRIX;
-typedef struct _VECTOR_VERTEX {
+typedef struct _VECTOR_VERTEX_ROTATION {
float x, y, z;
-} VECTOR, VERTEX;
+} VECTOR, VERTEX, ROTATION;
typedef struct _TEXCOORDS {
float s, t;
@@ -19,6 +18,13 @@ typedef struct _TRIANGLE { VERTEX vertices[3];
VECTOR normal;
} TRIANGLE;
-#pragma pack(pop)
+
+typedef struct _OBJECT {
+ VERTEX pos;
+ VECTOR move;
+ ROTATION rot;
+ float air_resistance;
+ float bounce;
+} OBJECT;
#endif
|