VertexBuffer
Object Hierarchy:
Description:
[
CCode ( cname =
"CoglHandle" , ref_function =
"cogl_vertex_buffer_ref" , unref_function =
"cogl_vertex_buffer_unref" ) ]
[
Compact ]
public class VertexBuffer :
Handle
Content:
Creation methods:
Methods:
- public void @delete (string attribute_name)
Deletes an attribute from a buffer.
- public void add (string attribute_name, uchar n_components, AttributeType type, bool normalized, uint16 stride, void* pointer)
Adds an attribute to a buffer, or replaces a previously added attribute with
the same name.
- public void disable (string attribute_name)
Disables a previosuly added attribute.
- public void draw (VerticesMode mode, int first, int count)
Allows you to draw geometry using all or a subset of the vertices in a
vertex buffer.
- public void draw_elements (VerticesMode mode, VertexBufferIndices indices, int min_index, int max_index, int indices_offset, int count)
This function lets you use an array of indices to specify the vertices
within your vertex buffer that you want to draw.
- public void enable (string attribute_name)
Enables a previosuly disabled attribute.
- public uint get_n_vertices ()
Retrieves the number of vertices that handle
represents
- public void submit ()
Submits all the user added attributes to the GPU; once submitted, the
attributes can be used for drawing.
Inherited Members:
All known members inherited from class Cogl.Handle