/********************************************************************* * * * FLY * * --E#Y#E-- * * (==MUSCLE==) * * * *********************************************************************/ #ifndef GEOMETRY_H_ #define GEOMETRY_H_ //-------------------------------------------------------------------------- /* Offset */ #define BUFFER_OFFSET(i)((char *)NULL + (i)) /* Buffer */ enum Buffers { COLOR_BUFFER, NORMAL_BUFFER, VERTEX_BUFFER, INDEX_BUFFER, MAX_BUFFERS }; //-------------------------------------------------------------------------- /* Init Color */ struct f_color { float r; float g; float b; float a; }; /* Textures Coordinate */ struct f_texture { float s; float t; float p; float q; }; /* Init Triangles */ struct f_triangles { float x; float y; float z; float w; }; //-------------------------------------------------------------------------- /* R / G / B / A */ struct M_Color { float mr, mg, mb, ma; M_Color(float mr, float mg, float mb, float ma) { this->mr = mr; this->mg = mg; this->mb = mb; this->ma = ma; } }; //-------------------------------------------------------------------------- /* S / T / P / Q */ struct M_Textur { float ms, mt; M_Textur(float ms, float mt) { this->ms = ms; this->mt = mt; } }; //-------------------------------------------------------------------------- /* X / Y / Z / W */ struct M_Vertex { float mx, my, mz; M_Vertex() { mx = my = mz = 0.0f; } M_Vertex(float mx, float my, float mz) { this->mx = mx; this->my = my; this->mz = mz; } }; //-------------------------------------------------------------------------- #endif