polyvox/examples/OpenGL/OpenGLVertexBufferObjectSupport.h

19 lines
537 B
C

#ifndef __OpenGLExample_OpenGLVertexBufferObjectSupport_H__
#define __OpenGLExample_OpenGLVertexBufferObjectSupport_H__
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
#include "glew/glew.h"
struct OpenGLSurfacePatch
{
GLulong noOfIndices;
GLuint indexBuffer;
GLuint vertexBuffer;
};
OpenGLSurfacePatch BuildOpenGLSurfacePatch(PolyVox::IndexedSurfacePatch& isp);
void renderRegionVertexBufferObject(const OpenGLSurfacePatch& openGLSurfacePatch);
#endif //__OpenGLExample_OpenGLVertexBufferObjectSupport_H__