/********************************************************************* * * * 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 }; //-------------------------------------------------------------------------- /* 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