ClanLib
2.3.7
|
Texture Unit description. More...
#include <texture_unit.h>
Public Member Functions | |
CL_TextureUnit_GL1 () | |
Construction. More... | |
~CL_TextureUnit_GL1 () | |
CL_Colorf | get_color () const |
Returns the constant color for texture unit. More... | |
CL_TextureUnitAlphaMode | get_combine_alpha_mode () const |
Returns the alpha combine texture function. More... | |
CL_TextureUnitAlphaOperand | get_combine_arg_operand_alpha (int arg) const |
Returns the operand for the alpha combine function's specified argument. More... | |
CL_TextureUnitRGBOperand | get_combine_arg_operand_rgb (int arg) const |
Returns the operand for the RGB combine function's specified argument. More... | |
CL_TextureUnitSource | get_combine_arg_src_alpha (int arg) const |
Returns the alpha source for the alpha combine function's specified argument. More... | |
CL_TextureUnitSource | get_combine_arg_src_rgb (int arg) const |
Returns the color source for the RGB combine function's specified argument. More... | |
CL_TextureUnitRGBMode | get_combine_rgb_mode () const |
Returns the RGB combine texture function. More... | |
double | get_lod_bias () const |
Attributes. More... | |
CL_TextureUnitMode | get_mode () const |
Returns the texture function for texture unit. More... | |
bool | get_point_coord_replace () const |
Returns true if using point sprite texture coordinates. More... | |
void | set_color (const CL_Colorf &color) |
Sets the constant color for texture unit. More... | |
void | set_combine_alpha_arg (int arg, CL_TextureUnitSource src_alpha, CL_TextureUnitAlphaOperand operand_alpha) |
Sets an arguement for the alpha combine texture function. More... | |
void | set_combine_arg (int arg, CL_TextureUnitSource src_rgb, CL_TextureUnitRGBOperand operand_rgb, CL_TextureUnitSource src_alpha, CL_TextureUnitAlphaOperand operand_alpha) |
Sets an arguement for the RGB and alpha combine texture functions. More... | |
void | set_combine_mode (CL_TextureUnitRGBMode rgb_mode, CL_TextureUnitAlphaMode alpha_mode) |
Sets the RGB and alpha combine texture functions. More... | |
void | set_combine_rgb_arg (int arg, CL_TextureUnitSource src_rgb, CL_TextureUnitRGBOperand operand_rgb) |
Sets an arguement for the RGB combine texture function. More... | |
void | set_lod_bias (double bias) |
Operations. More... | |
void | set_mode (CL_TextureUnitMode mode) |
Sets the texture function for texture unit. More... | |
void | set_point_coord_replace (bool enable) |
Enables whether texture coordinates are replaced with point sprite texture coordinates. More... | |
Texture Unit description.
CL_TextureUnit_GL1::CL_TextureUnit_GL1 | ( | ) |
Construction.
Constructs a texture unit.*/
CL_TextureUnit_GL1::~CL_TextureUnit_GL1 | ( | ) |
CL_Colorf CL_TextureUnit_GL1::get_color | ( | ) | const |
Returns the constant color for texture unit.
CL_TextureUnitAlphaMode CL_TextureUnit_GL1::get_combine_alpha_mode | ( | ) | const |
Returns the alpha combine texture function.
The alpha combine texture function is only used when the mode is cl_unitmode_combine.
CL_TextureUnitAlphaOperand CL_TextureUnit_GL1::get_combine_arg_operand_alpha | ( | int | arg) | const |
Returns the operand for the alpha combine function's specified argument.
CL_TextureUnitRGBOperand CL_TextureUnit_GL1::get_combine_arg_operand_rgb | ( | int | arg) | const |
Returns the operand for the RGB combine function's specified argument.
CL_TextureUnitSource CL_TextureUnit_GL1::get_combine_arg_src_alpha | ( | int | arg) | const |
Returns the alpha source for the alpha combine function's specified argument.
CL_TextureUnitSource CL_TextureUnit_GL1::get_combine_arg_src_rgb | ( | int | arg) | const |
Returns the color source for the RGB combine function's specified argument.
CL_TextureUnitRGBMode CL_TextureUnit_GL1::get_combine_rgb_mode | ( | ) | const |
Returns the RGB combine texture function.
The RGB combine texture function is only used when the mode is cl_unitmode_combine.
double CL_TextureUnit_GL1::get_lod_bias | ( | ) | const |
Attributes.
Returns the texture level of detail bias for texture unit.
CL_TextureUnitMode CL_TextureUnit_GL1::get_mode | ( | ) | const |
Returns the texture function for texture unit.
bool CL_TextureUnit_GL1::get_point_coord_replace | ( | ) | const |
Returns true if using point sprite texture coordinates.
void CL_TextureUnit_GL1::set_color | ( | const CL_Colorf & | color) |
Sets the constant color for texture unit.
void CL_TextureUnit_GL1::set_combine_alpha_arg | ( | int | arg, |
CL_TextureUnitSource | src_alpha, | ||
CL_TextureUnitAlphaOperand | operand_alpha | ||
) |
Sets an arguement for the alpha combine texture function.
void CL_TextureUnit_GL1::set_combine_arg | ( | int | arg, |
CL_TextureUnitSource | src_rgb, | ||
CL_TextureUnitRGBOperand | operand_rgb, | ||
CL_TextureUnitSource | src_alpha, | ||
CL_TextureUnitAlphaOperand | operand_alpha | ||
) |
Sets an arguement for the RGB and alpha combine texture functions.
void CL_TextureUnit_GL1::set_combine_mode | ( | CL_TextureUnitRGBMode | rgb_mode, |
CL_TextureUnitAlphaMode | alpha_mode | ||
) |
Sets the RGB and alpha combine texture functions.
The combine texture functions are only used when the mode is cl_unitmode_combine.
void CL_TextureUnit_GL1::set_combine_rgb_arg | ( | int | arg, |
CL_TextureUnitSource | src_rgb, | ||
CL_TextureUnitRGBOperand | operand_rgb | ||
) |
Sets an arguement for the RGB combine texture function.
void CL_TextureUnit_GL1::set_lod_bias | ( | double | bias) |
Operations.
Sets the texture level of detail bias for texture unit.
void CL_TextureUnit_GL1::set_mode | ( | CL_TextureUnitMode | mode) |
Sets the texture function for texture unit.
void CL_TextureUnit_GL1::set_point_coord_replace | ( | bool | enable) |
Enables whether texture coordinates are replaced with point sprite texture coordinates.