2014-12-23 11:29:37 +01:00
|
|
|
namespace Rw {
|
|
|
|
|
|
|
|
struct OGLAttrib
|
|
|
|
{
|
|
|
|
// arguments to glVertexAttribPointer (should use OpenGL types here)
|
2014-12-23 16:15:11 +01:00
|
|
|
// Vertex = 0, TexCoord, Normal, Color, Weight, Bone Index
|
2014-12-23 11:29:37 +01:00
|
|
|
uint32 index;
|
2014-12-23 16:15:11 +01:00
|
|
|
// float = 0, byte, ubyte, short, ushort
|
2014-12-23 11:29:37 +01:00
|
|
|
int32 type;
|
|
|
|
bool32 normalized;
|
|
|
|
int32 size;
|
|
|
|
uint32 stride;
|
|
|
|
uint32 offset;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct OGLInstanceDataHeader : InstanceDataHeader
|
|
|
|
{
|
|
|
|
int32 numAttribs;
|
|
|
|
OGLAttrib *attribs;
|
|
|
|
uint32 dataSize;
|
|
|
|
uint8 *data;
|
|
|
|
};
|
|
|
|
|
|
|
|
void *DestroyNativeDataOGL(void *object, int32, int32);
|
|
|
|
void ReadNativeDataOGL(std::istream &stream, int32 len, void *object, int32, int32);
|
|
|
|
void WriteNativeDataOGL(std::ostream &stream, int32 len, void *object, int32, int32);
|
|
|
|
int32 GetSizeNativeDataOGL(void *object, int32, int32);
|
|
|
|
|
|
|
|
}
|