ClanLib  2.3.7
List of all members
CL_ShaderObjectProvider Class Referenceabstract

Shader Object provider. More...

#include <shader_object_provider.h>

Public Member Functions

Construction
virtual ~CL_ShaderObjectProvider ()
 
virtual void create (CL_ShaderType type, const CL_StringRef &source)=0
 Creates a shader object. More...
 
virtual void create (CL_ShaderType type, const std::vector< CL_StringRef > &sources)=0
 Create. More...
 
virtual void destroy ()=0
 Destroys the shadoer object provider. More...
 
Attributes
virtual unsigned int get_handle () const =0
 Returns the OpenGL shader handle. More...
 
virtual bool get_compile_status () const =0
 Returns true if compile succeeded. More...
 
virtual CL_ShaderType get_shader_type () const =0
 Gets the shader type. More...
 
virtual CL_String get_info_log () const =0
 Get shader object's info log. More...
 
virtual CL_String get_shader_source () const =0
 Get shader source code. More...
 
Operations
virtual void compile ()=0
 Compile program. More...
 

Detailed Description

Shader Object provider.

Constructor & Destructor Documentation

virtual CL_ShaderObjectProvider::~CL_ShaderObjectProvider ( )
inlinevirtual

Member Function Documentation

virtual void CL_ShaderObjectProvider::compile ( )
pure virtual

Compile program.

virtual void CL_ShaderObjectProvider::create ( CL_ShaderType  type,
const CL_StringRef source 
)
pure virtual

Creates a shader object.

virtual void CL_ShaderObjectProvider::create ( CL_ShaderType  type,
const std::vector< CL_StringRef > &  sources 
)
pure virtual

Create.

Parameters
type= Shader Type
vector= std
virtual void CL_ShaderObjectProvider::destroy ( )
pure virtual

Destroys the shadoer object provider.

virtual bool CL_ShaderObjectProvider::get_compile_status ( ) const
pure virtual

Returns true if compile succeeded.

virtual unsigned int CL_ShaderObjectProvider::get_handle ( ) const
pure virtual

Returns the OpenGL shader handle.

virtual CL_String CL_ShaderObjectProvider::get_info_log ( ) const
pure virtual

Get shader object's info log.

virtual CL_String CL_ShaderObjectProvider::get_shader_source ( ) const
pure virtual

Get shader source code.

virtual CL_ShaderType CL_ShaderObjectProvider::get_shader_type ( ) const
pure virtual

Gets the shader type.


The documentation for this class was generated from the following file: