added CompoundDemo
This commit is contained in:
22
btgui/OpenGLWindow/GLInstanceGraphicsShape.h
Normal file
22
btgui/OpenGLWindow/GLInstanceGraphicsShape.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef GL_INSTANCE_GRAPHICS_SHAPE_H
|
||||
#define GL_INSTANCE_GRAPHICS_SHAPE_H
|
||||
|
||||
#include "BulletCommon/btAlignedObjectArray.h"
|
||||
|
||||
struct GLInstanceVertex
|
||||
{
|
||||
float xyzw[4];
|
||||
float normal[3];
|
||||
float uv[2];
|
||||
};
|
||||
struct GLInstanceGraphicsShape
|
||||
{
|
||||
btAlignedObjectArray<GLInstanceVertex>* m_vertices;
|
||||
int m_numvertices;
|
||||
btAlignedObjectArray<int>* m_indices;
|
||||
int m_numIndices;
|
||||
float m_scaling[4];
|
||||
};
|
||||
|
||||
#endif //GL_INSTANCE_GRAPHICS_SHAPE_H
|
||||
|
||||
Reference in New Issue
Block a user