Constructor
CoglPrimitivenew
Declaration [src]
CoglPrimitive*
cogl_primitive_new (
  CoglVerticesMode mode,
  int n_vertices,
  ...
)
Description [src]
Combines a set of CoglAttributes with a specific draw mode
and defines a vertex count so a CoglPrimitive object can be retained and
drawn later with no addition information required.
The value passed as n_vertices will simply update the
CoglPrimitive n_vertices property as if
cogl_primitive_set_n_vertices() were called. This property defines
the number of vertices to read when drawing.
This constructor is not directly available to language bindings.
Parameters
- mode
- 
            Type: CoglVerticesModeA CoglVerticesModedefining how to draw the vertices.
- n_vertices
- 
            Type: intThe number of vertices to process when drawing. 
- ...
- 
            Type: A NULLterminated list of attributes.
Return value
Type: CoglPrimitive
A newly allocated CoglPrimitive object.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |