- public void add_layer_snippet (int layer, Snippet snippet)
Adds a shader snippet that will hook on to the given layer of the
pipeline.
- public void add_snippet (Snippet snippet)
Adds a shader snippet to this.
- public Pipeline copy ()
Creates a new pipeline with the configuration copied from the source
pipeline.
- public void foreach_layer (PipelineLayerCallback callback)
Iterates all the layer indices of the given
this.
- public PipelineAlphaFunc get_alpha_test_function ()
- public float get_alpha_test_reference ()
- public void get_ambient (Color ambient)
Retrieves the current ambient color for
this
- public void get_color (out Color color)
Retrieves the current pipeline color.
- public ColorMask get_color_mask ()
Gets the current ColorMask
of which channels would be written to the current framebuffer.
- public PipelineCullFaceMode get_cull_face_mode ()
- public DepthState get_depth_state ()
Retrieves the current depth state configuration for the given
this as previously set using
set_depth_state.
- public void get_diffuse (Color diffuse)
Retrieves the current diffuse color for
this
- public void get_emission (Color emission)
Retrieves the pipelines current emission color.
- public Winding get_front_face_winding ()
The order of the vertices within a primitive specifies whether it is
considered to be front or back facing.
- public PipelineFilter get_layer_mag_filter (int layer_index)
Retrieves the currently set magnification
PipelineFilter set on the specified layer.
- public PipelineFilter get_layer_min_filter (int layer_index)
Retrieves the currently set minification
PipelineFilter set on the specified layer.
- public Bool get_layer_point_sprite_coords_enabled (int layer_index)
Gets whether point sprite coordinate generation is enabled for this
texture layer.
- public weak Texture get_layer_texture (int layer_index)
- public PipelineWrapMode get_layer_wrap_mode_p (int layer_index)
Returns the wrap mode for the 'p' coordinate of texture lookups on
this layer.
- public PipelineWrapMode get_layer_wrap_mode_s (int layer_index)
Returns the wrap mode for the 's' coordinate of texture lookups on
this layer.
- public PipelineWrapMode get_layer_wrap_mode_t (int layer_index)
Returns the wrap mode for the 't' coordinate of texture lookups on
this layer.
- public int get_n_layers ()
Retrieves the number of layers defined for the given
this
- public Bool get_per_vertex_point_size ()
- public float get_point_size ()
Get the size of points drawn when
cogl_vertices_mode_points is used with the vertex buffer API.
- public float get_shininess ()
Retrieves the pipelines current emission color.
- public void get_specular (Color specular)
Retrieves the pipelines current specular color.
- public int get_uniform_location (string uniform_name)
This is used to get an integer representing the uniform with the name
uniform_name
.
- public Handle get_user_program ()
Queries what user program has been associated with the given
this using set_user_program.
- public void remove_layer (int layer_index)
This function removes a layer from your pipeline
- public void set_alpha_test_function (PipelineAlphaFunc alpha_func, float alpha_reference)
Before a primitive is blended with the framebuffer, it goes through an
alpha test stage which lets you discard fragments based on the current alpha value.
- public void set_ambient (Color ambient)
Sets the pipeline's ambient color, in the standard OpenGL lighting
model.
- public void set_ambient_and_diffuse (Color color)
Conveniently sets the diffuse and ambient color of
this at the same time.
- public Bool set_blend (string blend_string) throws Error
If not already familiar; please refer <link
linkend="cogl-Blend-Strings">here</link> for an overview of what blend strings are, and their syntax.
- public void set_blend_constant (Color constant_color)
When blending is setup to reference a CONSTANT blend factor then
blending will depend on the constant set with this function.
- public void set_color (Color color)
Sets the basic color of the pipeline, used when no lighting is
enabled.
- public void set_color4f (float red, float green, float blue, float alpha)
Sets the basic color of the pipeline, used when no lighting is
enabled.
- public void set_color4ub (uint8 red, uint8 green, uint8 blue, uint8 alpha)
Sets the basic color of the pipeline, used when no lighting is
enabled.
- public void set_color_mask (ColorMask color_mask)
Defines a bit mask of which color channels should be written to the
current framebuffer.
- public void set_cull_face_mode (PipelineCullFaceMode cull_face_mode)
Sets which faces will be culled when drawing.
- public Bool set_depth_state (DepthState state) throws Error
This commits all the depth state configured in state
struct to the given this.
- public void set_diffuse (Color diffuse)
Sets the pipeline's diffuse color, in the standard OpenGL lighting
model.
- public void set_emission (Color emission)
Sets the pipeline's emissive color, in the standard OpenGL lighting
model.
- public void set_front_face_winding (Winding front_winding)
The order of the vertices within a primitive specifies whether it is
considered to be front or back facing.
- public Bool set_layer_combine (int layer_index, string blend_string) throws Error
If not already familiar; you can refer <link
linkend="cogl-Blend-Strings">here</link> for an overview of what blend strings are and there syntax.
- public void set_layer_combine_constant (int layer_index, Color constant)
When you are using the 'CONSTANT' color source in a layer combine
description then you can use this function to define its value.
- public void set_layer_filters (int layer_index, PipelineFilter min_filter, PipelineFilter mag_filter)
Changes the decimation and interpolation filters used when a texture
is drawn at other scales than 100%.
- public void set_layer_matrix (int layer_index, Matrix matrix)
This function lets you set a matrix that can be used to e.
- public void set_layer_null_texture (int layer_index, TextureType texture_type)
Sets the texture for this layer to be the default texture for the
given type.
- public Bool set_layer_point_sprite_coords_enabled (int layer_index, Bool enable) throws Error
When rendering points, if enable
is
true then the texture coordinates for this layer will be replaced with coordinates that
vary from 0.0 to 1.0 across the primitive.
- public void set_layer_texture (int layer_index, Texture texture)
- public void set_layer_wrap_mode (int layer_index, PipelineWrapMode mode)
Sets the wrap mode for all three coordinates of texture lookups on
this layer.
- public void set_layer_wrap_mode_p (int layer_index, PipelineWrapMode mode)
Sets the wrap mode for the 'p' coordinate of texture lookups on this
layer.
- public void set_layer_wrap_mode_s (int layer_index, PipelineWrapMode mode)
Sets the wrap mode for the 's' coordinate of texture lookups on this
layer.
- public void set_layer_wrap_mode_t (int layer_index, PipelineWrapMode mode)
Sets the wrap mode for the 't' coordinate of texture lookups on this
layer.
- public Bool set_per_vertex_point_size (Bool enable) throws Error
Sets whether to use a per-vertex point size or to use the value set by
set_point_size.
- public void set_point_size (float point_size)
Changes the size of points drawn when
cogl_vertices_mode_points is used with the attribute buffer API.
- public void set_shininess (float shininess)
Sets the shininess of the pipeline, in the standard OpenGL lighting
model, which determines the size of the specular highlights.
- public void set_specular (Color specular)
Sets the pipeline's specular color, in the standard OpenGL lighting
model.
- public void set_uniform_1f (int uniform_location, float value)
Sets a new value for the uniform at uniform_location
.
- public void set_uniform_1i (int uniform_location, int value)
Sets a new value for the uniform at uniform_location
.
- public void set_uniform_float (int uniform_location, int n_components, int count, float value)
Sets new values for the uniform at uniform_location
.
- public void set_uniform_int (int uniform_location, int n_components, int count, int value)
Sets new values for the uniform at uniform_location
.
- public void set_uniform_matrix (int uniform_location, int dimensions, int count, Bool transpose, float value)
Sets new values for the uniform at uniform_location
.
- public void set_user_program (Handle program)
Associates a linked CoglProgram with the given pipeline so that the
program can take full control of vertex and/or fragment processing.