36 lines
552 B
C++
36 lines
552 B
C++
#include "vector.h"
|
|
#include "myglTexture.h"
|
|
|
|
struct TRIANGLE
|
|
{
|
|
GL_MY_TEXTURE texture;
|
|
uint32 texID;
|
|
Vec3f vertecies[3];
|
|
Vec2f texCoords[3];
|
|
Vec3f normal;
|
|
};
|
|
|
|
class POSITION
|
|
{
|
|
public:
|
|
GLfloat xrot; // X rotation
|
|
GLfloat yrot; // Y rotation
|
|
GLfloat zrot; // Z rotation
|
|
GLfloat xtrans; // X translation
|
|
GLfloat ytrans; // Y translation
|
|
GLfloat ztrans; // Z translation
|
|
bool stepRight;
|
|
bool stepLeft;
|
|
POSITION()
|
|
{
|
|
xtrans = 0.0f;
|
|
ytrans = 0.0f;
|
|
ztrans = 0.0f;
|
|
xrot = 0.0f;
|
|
yrot = 0.0f;
|
|
zrot = 0.0f;
|
|
}
|
|
private:
|
|
|
|
};
|