diff options
author | neoraider <devnull@localhost> | 2005-04-22 21:51:02 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2005-04-22 21:51:02 +0200 |
commit | ad0845d0bd7ee0f90c4e73de4950656248d98a3d (patch) | |
tree | b4352ecf0d2b3b2ae07c746c7e81c962dd3ceb4e /neofx/types.h | |
download | libneofx-ad0845d0bd7ee0f90c4e73de4950656248d98a3d.tar libneofx-ad0845d0bd7ee0f90c4e73de4950656248d98a3d.zip |
Libneofx von Libzoom abgespalten
Diffstat (limited to 'neofx/types.h')
-rw-r--r-- | neofx/types.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/neofx/types.h b/neofx/types.h new file mode 100644 index 0000000..130f0f1 --- /dev/null +++ b/neofx/types.h @@ -0,0 +1,28 @@ +#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 {
+ float x, y, z;
+} VECTOR, VERTEX;
+
+typedef struct _TEXCOORDS {
+ float s, t;
+} TEXCOORDS;
+
+typedef struct _TRIANGLE {
+ unsigned char type;
+ unsigned char visible;
+ VERTEX vertices[3];
+ VECTOR normal;
+ int texture;
+ TEXCOORDS texcoords[3];
+} TRIANGLE;
+#pragma pack(pop)
+
+#endif
|