GL20VertexArray

An OpenGL 2.0 implementation of {@link VertexArray}. <p/> Vertex arrays will be used if the ARB or APPLE extension is supported by the hardware. Else, since core OpenGL doesn't support them until 3.0, the vertex attributes will have to be redefined on each render call.

@see VertexArray

Constructors

this
this()
Undocumented in source.

Members

Functions

create
void create()
Undocumented in source. Be warned that the author may not have intended to support it.
destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw()
Undocumented in source. Be warned that the author may not have intended to support it.
getGLVersion
gbaid.render.gl.GLVersion getGLVersion()
Undocumented in source. Be warned that the author may not have intended to support it.
setData
void setData(VertexData vertexData)
Undocumented in source. Be warned that the author may not have intended to support it.
setDrawingMode
void setDrawingMode(DrawingMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.
setIndicesCount
void setIndicesCount(uint count)
Undocumented in source. Be warned that the author may not have intended to support it.
setIndicesOffset
void setIndicesOffset(uint offset)
Undocumented in source. Be warned that the author may not have intended to support it.
setPolygonMode
void setPolygonMode(PolygonMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From VertexArray

id
uint id;
Undocumented in source.
destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
setData
void setData(VertexData vertexData)

Sets the vertex data source to use. The indices offset is kept but maybe reduced if it doesn't fit inside the new data. The count is set to the size from the offset to the end of the data.

setDrawingMode
void setDrawingMode(DrawingMode mode)

Sets the vertex array's drawing mode.

setPolygonMode
void setPolygonMode(PolygonMode mode)

Sets the vertex array's polygon mode. This describes how to rasterize each primitive. The default is {@link org.spout.renderer.api.gl.VertexArray.PolygonMode#FILL}. This can be used to draw only the wireframes of the polygons.

setIndicesOffset
void setIndicesOffset(uint offset)

Sets the starting offset in the indices buffer. Defaults to 0.

setIndicesCount
void setIndicesCount(uint count)

Sets the number of indices to render during each draw call, starting at the offset set by {@link #setIndicesOffset(int)}. Setting this to a value smaller than zero results in rendering of the whole list. If the value is larger than the list (starting at the offset), it will be maxed to that value.

draw
void draw()

Draws the primitives defined by the vertex data.

getID
uint getID()

Gets the ID for this vertex array as assigned by OpenGL.

Meta