Back to Seed Clases

Cogl


Classes

Interfaces

Structs

Unions

Enums

Struct Cogl.Color

Import line: Cogl = imports.gi.Cogl;
GIR File: Cogl-1.0.gir
C documentation: CoglColor
Struct : Color
  Show / Hide Inherited methods, properties and signals
A structure for holding a color definition. The contents of the CoglColor structure are private and should never by accessed directly.
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
 
new Cogl.Color ()
Create a new Cogl.Color
Create a new Cogl.Color
 
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Cogl
Method
Cogl.clear (Color color, Number buffers) : none
Clears all the auxiliary buffers identified in the buffers mask, and if that includes the color buffer then the specified color is used.
Cogl
Method
Cogl.material_get_ambient (void* material, Color ambient) : none
Retrieves the current ambient color for material
Cogl
Method
Cogl.material_get_color (void* material) : Cogl.Color
Retrieves the current material color.
Cogl
Method
Cogl.material_get_diffuse (void* material, Color diffuse) : none
Retrieves the current diffuse color for material
Cogl
Method
Cogl.material_get_emission (void* material, Color emission) : none
Retrieves the materials current emission color.
Cogl
Method
Cogl.material_get_specular (void* material, Color specular) : none
Retrieves the materials current specular color.
Cogl
Method
Cogl.material_set_ambient (void* material, Color ambient) : none
Sets the material's ambient color, in the standard OpenGL lighting model.
Cogl
Method
Cogl.material_set_ambient_and_diffuse (void* material, Color color) : none
Conveniently sets the diffuse and ambient color of material at the same time.
Cogl
Method
Cogl.material_set_blend_constant (void* material, Color constant_color) : none
When blending is setup to reference a CONSTANT blend factor then blending will depend on the constant set with this function.
Cogl
Method
Cogl.material_set_color (void* material, Color color) : none
Sets the basic color of the material, used when no lighting is enabled.
Cogl
Method
Cogl.material_set_diffuse (void* material, Color diffuse) : none
Sets the material's diffuse color, in the standard OpenGL lighting model.
Cogl
Method
Cogl.material_set_emission (void* material, Color emission) : none
Sets the material's emissive color, in the standard OpenGL lighting model.
Cogl
Method
Cogl.material_set_layer_combine_constant (void* material, Number layer_index, Color constant) : none
When you are using the 'CONSTANT' color source in a layer combine description then you can use this function to define its value.
Cogl
Method
Cogl.material_set_specular (void* material, Color specular) : none
Sets the material's specular color, in the standard OpenGL lighting model.
Cogl
Method
Cogl.set_fog (Color fog_color, FogMode mode, Number density, Number z_near, Number z_far) : none
Enables fogging.
Cogl
Method
Cogl.set_source_color (Color color) : none
This is a convenience function for creating a solid fill source material from the given color.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Tue Jun 22 2010 16:32:40 GMT+0800 (HKT)