Method GL.GLSLUtils.VertexBuffer()->create()


Method create

GL.GLSLUtils.VertexBuffer GL.GLSLUtils.VertexBuffer(int draw_mode)

Description

Create a new vertex buffer, draw_mode is a usage hint.

GL_STREAM_DRAW: Draw multiple times, updating the data ocassionally GL_STATIC_DRAW: Set the data once, then draw multiple times GL_DYNAMIC_DRAW: Draw and update all the time

The mode is only a hint, it does not really affect the functionality of the buffer.