All Classes |Grouped Classes |Index

Class CL_ShaderObject

Shader Object. More...

Derived from:

None

Derived by:

None

Group:

Display (Display)

#include <ClanLib/display.h>

Class Members:

Construction:

CL_ShaderObject

Constructs a null instance.

load

Load.

load_and_compile

Load and compile.


Attributes:

get_handle

Returns the OpenGL shader handle.

get_shader_type

Gets the shader type.

get_info_log

Get shader object's info log.

get_shader_source

Get shader source code.

is_null

Returns true if this object is invalid.

throw_if_null

Throw an exception if this object is invalid.

get_provider

Get Provider.


Operations:

operator==

Handle comparison operator.

compile

Compile program.

Detailed description:

The source code that makes up a program that gets executed by one of the programmable stages is encapsulated in one or more shader objects. Shader objects are attached to a program objects to form a programmable setup. CL_ShaderObject is ClanLib's C++ inte to O shader ober obje objects.