Class
CoglPrimitive
Description [src]
final class Cogl.Primitive : GObject.Object
{
/* No available fields */
}
Functions for creating, manipulating and drawing primitives.
Constructors
cogl_primitive_new
Combines a set of CoglAttribute
s 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.
cogl_primitive_new_p2
Provides a convenient way to describe a primitive, such as a single
triangle strip or a triangle fan, that will internally allocate the
necessary CoglAttributeBuffer
storage, describe the position
attribute with a CoglAttribute
and upload your data.
cogl_primitive_new_p2c4
Provides a convenient way to describe a primitive, such as a single
triangle strip or a triangle fan, that will internally allocate the
necessary CoglAttributeBuffer
storage, describe the position
and color attributes with CoglAttribute
s and upload
your data.
cogl_primitive_new_p2t2
Provides a convenient way to describe a primitive, such as a single
triangle strip or a triangle fan, that will internally allocate the
necessary CoglAttributeBuffer
storage, describe the position and
texture coordinate attributes with CoglAttribute
s and
upload your data.
cogl_primitive_new_p3
Provides a convenient way to describe a primitive, such as a single
triangle strip or a triangle fan, that will internally allocate the
necessary CoglAttributeBuffer
storage, describe the position
attribute with a CoglAttribute
and upload your data.
cogl_primitive_new_p3t2
Provides a convenient way to describe a primitive, such as a single
triangle strip or a triangle fan, that will internally allocate the
necessary CoglAttributeBuffer
storage, describe the position and
texture coordinate attributes with CoglAttribute
s and
upload your data.
cogl_primitive_new_with_attributes
Combines a set of CoglAttribute
s 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.
Instance methods
cogl_primitive_draw
Draws the given primitive
geometry to the specified destination
framebuffer
using the graphics processing state described by pipeline
.
cogl_primitive_set_n_vertices
Specifies how many vertices should be read when drawing the given
primitive
.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.