#include <program_object_provider.h>
Public Member Functions | |
Construction | |
| virtual | ~CL_ProgramObjectProvider () |
| virtual void | destroy ()=0 |
| Destroy. | |
Attributes | |
| virtual unsigned int | get_handle () const =0 |
| Returns the OpenGL program object handle. | |
| virtual bool | get_link_status () const =0 |
| Returns true if the link succeeded. | |
| virtual bool | get_validate_status () const =0 |
| Returns true if validation succeeded. | |
| virtual CL_String | get_info_log () const =0 |
| Returns the current info log for the program object. | |
| virtual int | get_attribute_count () const =0 |
| Returns the count of active attributes. | |
| virtual std::vector< CL_ShaderObject > | get_shaders () const =0 |
| Returns the shaders used in this program. | |
| virtual std::vector< CL_ProgramAttribute > | get_attributes () const =0 |
| Returns the active attributes. | |
| virtual int | get_attribute_location (const CL_StringRef &name) const =0 |
| Returns the location of a named active attribute. | |
| virtual int | get_uniform_count () const =0 |
| Returns the count of active uniform variables. | |
| virtual std::vector< CL_ProgramUniform > | get_uniforms () const =0 |
| Returns the active uniforms. | |
| virtual int | get_uniform_location (const CL_StringRef &name) const =0 |
| Returns the location of a named uniform variable. | |
Operations | |
| virtual void | attach (const CL_ShaderObject &obj)=0 |
| Add shader to program object. | |
| virtual void | detach (const CL_ShaderObject &obj)=0 |
| Remove shader from program object. | |
| virtual void | bind_attribute_location (int index, const CL_StringRef &name)=0 |
| Bind attribute to specific location. | |
| virtual void | link ()=0 |
| Link program. | |
| virtual void | validate ()=0 |
| Validate program. | |
| virtual void | set_uniform1i (const CL_StringRef &name, int)=0 |
| Set uniform variable(s). | |
| virtual void | set_uniform2i (const CL_StringRef &name, int, int)=0 |
| Set uniform2i. | |
| virtual void | set_uniform3i (const CL_StringRef &name, int, int, int)=0 |
| virtual void | set_uniform4i (const CL_StringRef &name, int, int, int, int)=0 |
| Set uniform4i. | |
| virtual void | set_uniformiv (const CL_StringRef &name, int size, int count, int *data)=0 |
| Set uniformiv. | |
| virtual void | set_uniform1f (const CL_StringRef &name, float)=0 |
| virtual void | set_uniform2f (const CL_StringRef &name, float, float)=0 |
| Set uniform2f. | |
| virtual void | set_uniform3f (const CL_StringRef &name, float, float, float)=0 |
| virtual void | set_uniform4f (const CL_StringRef &name, float, float, float, float)=0 |
| Set uniform4f. | |
| virtual void | set_uniformfv (const CL_StringRef &name, int size, int count, float *data)=0 |
| Set uniformfv. | |
| virtual void | set_uniform_matrix (const CL_StringRef &name, int size, int count, bool transpose, float *data)=0 |
| Set uniform matrices. | |
|
|
|
|
|
Add shader to program object.
|
|
||||||||||||
|
Bind attribute to specific location. This function must be called before linking. |
|
|
Destroy.
|
|
|
Remove shader from program object.
|
|
|
Returns the count of active attributes.
|
|
|
Returns the location of a named active attribute.
|
|
|
Returns the active attributes.
|
|
|
Returns the OpenGL program object handle.
|
|
|
Returns the current info log for the program object.
|
|
|
Returns true if the link succeeded.
|
|
|
Returns the shaders used in this program.
|
|
|
Returns the count of active uniform variables.
|
|
|
Returns the location of a named uniform variable.
|
|
|
Returns the active uniforms.
|
|
|
Returns true if validation succeeded.
|
|
|
Link program. If the linking fails, get_link_status() will return false and get_info_log() will return the link log. |
|
||||||||||||
|
|
|
||||||||||||
|
Set uniform variable(s).
|
|
||||||||||||||||
|
Set uniform2f.
|
|
||||||||||||||||
|
Set uniform2i.
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
Set uniform4f.
|
|
||||||||||||||||||||||||
|
Set uniform4i.
|
|
||||||||||||||||||||||||
|
Set uniform matrices.
|
|
||||||||||||||||||||
|
Set uniformfv.
|
|
||||||||||||||||||||
|
Set uniformiv.
|
|
|
Validate program. If the validation fails, get_validate_status() will return false and get_info_log() will return the validation log. |
1.4.6