This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
neofx-libneofx/neofx/types.h

36 lines
544 B
C
Raw Permalink Normal View History

2005-04-22 19:51:02 +00:00
#ifndef NEOFX_TYPES_H
#define NEOFX_TYPES_H
typedef union _MATRIX {
float m[4][4];
float f[16];
} MATRIX;
typedef union _VECTOR_VERTEX_ROTATION_COLOR {
struct {
float x, y, z;
};
struct {
float r, g, b;
};
} VECTOR, VERTEX, ROTATION, COLOR;
2005-04-22 19:51:02 +00:00
typedef struct _TEXCOORDS {
float s, t;
} TEXCOORDS;
typedef struct _TRIANGLE {
VERTEX vertices[3];
VECTOR normal;
} TRIANGLE;
typedef struct _OBJECT {
VERTEX pos;
VECTOR move;
ROTATION rot;
float air_resistance;
float bounce;
} OBJECT;
2005-04-22 19:51:02 +00:00
#endif