Public Member Functions | |
| PtVBO () | |
| void | Release () |
| void | CreateBuffer (VBOType vboType, VBOUsage vboUsage, ref float[] vertices, int floatsPerVertex) |
| void | CreateBuffer (VBOType vboType, VBOUsage vboUsage, ref Byte[] bytes, int BytesPerVertex) |
| void | CreateBuffer (VBOType vboType, VBOUsage vboUsage, ref Vertex3f[] vert) |
| void | CreateBuffer (VBOType vboType, VBOUsage vboUsage, ref Vertex2f[] vert, int textureUnit) |
| void | CreateBuffer (VBOType vboType, VBOUsage vboUsage, ref Vertex4f[] vert, int textureUnit) |
| void | UpdateVBO (ref float[] vertices) |
| void | PartUpdateVBO (int vertexStartIndex, ref float[] newVertices) |
| void | Bind (int texture) |
| void | Bind () |
| void | DrawArrays (int mode) |
| void | UnBind () |
| Powertek.OpenGl.PtVBO.PtVBO | ( | ) |
| void Powertek.OpenGl.PtVBO.Bind | ( | ) |
Bind VBO.
| void Powertek.OpenGl.PtVBO.Bind | ( | int | texture | ) |
Bind VBO To Texture Unit, Gl.GL_TEXTURE0_ARB, Gl.GL_TEXTURE1_ARB etc Note: only allowed for VBOType.TextureCoordsArray.
| texture |
| void Powertek.OpenGl.PtVBO.CreateBuffer | ( | VBOType | vboType, | |
| VBOUsage | vboUsage, | |||
| ref Vertex4f[] | vert, | |||
| int | textureUnit | |||
| ) |
Create VBO Buffer, UV VBO 4f.
| vboType | ||
| vboUsage | ||
| vert | ||
| textureUnit |
| void Powertek.OpenGl.PtVBO.CreateBuffer | ( | VBOType | vboType, | |
| VBOUsage | vboUsage, | |||
| ref Vertex2f[] | vert, | |||
| int | textureUnit | |||
| ) |
Create VBO Buffer, UV VBO 2f.
| vboType | ||
| vboUsage | ||
| vert | ||
| textureUnit |
| void Powertek.OpenGl.PtVBO.CreateBuffer | ( | VBOType | vboType, | |
| VBOUsage | vboUsage, | |||
| ref Vertex3f[] | vert | |||
| ) |
Create VBO Buffer.
| vboType | ||
| vboUsage | ||
| vert |
| void Powertek.OpenGl.PtVBO.CreateBuffer | ( | VBOType | vboType, | |
| VBOUsage | vboUsage, | |||
| ref Byte[] | bytes, | |||
| int | BytesPerVertex | |||
| ) |
Create VBO Buffer.
| vboType | ||
| vboUsage | ||
| bytes | ||
| BytesPerVertex |
| void Powertek.OpenGl.PtVBO.CreateBuffer | ( | VBOType | vboType, | |
| VBOUsage | vboUsage, | |||
| ref float[] | vertices, | |||
| int | floatsPerVertex | |||
| ) |
Create VBO Buffer.
| vboType | ||
| vboUsage | ||
| vertices | ||
| floatsPerVertex |
| void Powertek.OpenGl.PtVBO.DrawArrays | ( | int | mode | ) |
DrawArrays, Gl.GL_POINTS, Gl.GL_TRIANGLES, Gl.GL_QUADS.
| mode |
| void Powertek.OpenGl.PtVBO.PartUpdateVBO | ( | int | vertexStartIndex, | |
| ref float[] | newVertices | |||
| ) |
Part UpdateVBO, update some elements of the buffer, fFloatsPerVertex must be constant vertexStartIndex is the index of the vertex to startupdate, not index of the byte/float.
| vertexStartIndex | ||
| newVertices |
| void Powertek.OpenGl.PtVBO.Release | ( | ) |
Release VBO.
| void Powertek.OpenGl.PtVBO.UnBind | ( | ) |
UnBind.
| void Powertek.OpenGl.PtVBO.UpdateVBO | ( | ref float[] | vertices | ) |
UpdateVBO, fully replace the content of the vbo, fFloatsPerVertex must be constant.
| vertices |
1.5.7.1