2015-04-16 16:55:32 +00:00
|
|
|
#ifndef GL_INSTANCE_RENDERER_INTERNAL_DATA_H
|
|
|
|
#define GL_INSTANCE_RENDERER_INTERNAL_DATA_H
|
|
|
|
|
|
|
|
#include "OpenGLInclude.h"
|
|
|
|
#include "Bullet3Common/b3AlignedObjectArray.h"
|
|
|
|
|
|
|
|
struct GLInstanceRendererInternalData
|
|
|
|
{
|
|
|
|
b3AlignedObjectArray<GLfloat> m_instance_positions_ptr;
|
|
|
|
b3AlignedObjectArray<GLfloat> m_instance_quaternion_ptr;
|
|
|
|
b3AlignedObjectArray<GLfloat> m_instance_colors_ptr;
|
|
|
|
b3AlignedObjectArray<GLfloat> m_instance_scale_ptr;
|
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
int m_vboSize;
|
|
|
|
GLuint m_vbo;
|
|
|
|
int m_totalNumInstances;
|
|
|
|
int m_maxNumObjectCapacity;
|
|
|
|
int m_maxShapeCapacityInBytes;
|
2015-04-16 16:55:32 +00:00
|
|
|
};
|
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
#endif //GL_INSTANCE_RENDERER_INTERNAL_DATA_H
|