add initial examples, replacing the 'Demos/Demos3'. Will make it work cross-platform, OpenGL3/OpenGL2 and add more examples to it.
This commit is contained in:
20
examples/OpenGLWindow/GLInstanceRendererInternalData.h
Normal file
20
examples/OpenGLWindow/GLInstanceRendererInternalData.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#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;
|
||||
|
||||
int m_vboSize;
|
||||
GLuint m_vbo;
|
||||
int m_totalNumInstances;
|
||||
};
|
||||
|
||||
#endif //GL_INSTANCE_RENDERER_INTERNAL_DATA_H
|
||||
Reference in New Issue
Block a user