GLInstanceRendererInternalData.h 626 B

1234567891011121314151617181920212223
  1. #ifndef GL_INSTANCE_RENDERER_INTERNAL_DATA_H
  2. #define GL_INSTANCE_RENDERER_INTERNAL_DATA_H
  3. #include "OpenGLInclude.h"
  4. #include "Bullet3Common/b3AlignedObjectArray.h"
  5. struct GLInstanceRendererInternalData
  6. {
  7. b3AlignedObjectArray<GLfloat> m_instance_positions_ptr;
  8. b3AlignedObjectArray<GLfloat> m_instance_quaternion_ptr;
  9. b3AlignedObjectArray<GLfloat> m_instance_colors_ptr;
  10. b3AlignedObjectArray<GLfloat> m_instance_scale_ptr;
  11. int m_vboSize;
  12. GLuint m_vbo;
  13. int m_totalNumInstances;
  14. int m_maxNumObjectCapacity;
  15. int m_maxShapeCapacityInBytes;
  16. };
  17. #endif //GL_INSTANCE_RENDERER_INTERNAL_DATA_H