/********************************************************************* * * * 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; }; /*-------------------------------------------------------------------------*/ /* S / T / P / Q */ struct M_Textur { float ms, mt; }; /*-------------------------------------------------------------------------*/ /* X / Y / Z / W */ struct M_Vertex { float mx, my, mz; }; /*-------------------------------------------------------------------------*/ #endif