clan::ShaderObjectProvider Class Referenceabstract

Shader Object provider. More...

#include <shader_object_provider.h>

Public Member Functions

virtual ~ShaderObjectProvider ()
 
virtual void compile ()=0
 Compile program. More...
 
virtual void create (ShaderType type, const std::string &source)=0
 Creates a shader object. More...
 
virtual void create (ShaderType type, const void *source, int source_size)=0
 Creates a shader object. More...
 
virtual void create (ShaderType type, const std::vector< std::string > &sources)=0
 Create. More...
 
virtual bool get_compile_status () const =0
 Returns true if compile succeeded. More...
 
virtual unsigned int get_handle () const =0
 Returns the OpenGL shader handle. More...
 
virtual std::string get_info_log () const =0
 Get shader object's info log. More...
 
virtual std::string get_shader_source () const =0
 Get shader source code. More...
 
virtual ShaderType get_shader_type () const =0
 Gets the shader type. More...
 

Detailed Description

Shader Object provider.

Constructor & Destructor Documentation

virtual clan::ShaderObjectProvider::~ShaderObjectProvider ( )
inlinevirtual

Member Function Documentation

virtual void clan::ShaderObjectProvider::compile ( )
pure virtual

Compile program.

virtual void clan::ShaderObjectProvider::create ( ShaderType  type,
const std::string source 
)
pure virtual

Creates a shader object.

virtual void clan::ShaderObjectProvider::create ( ShaderType  type,
const void *  source,
int  source_size 
)
pure virtual

Creates a shader object.

virtual void clan::ShaderObjectProvider::create ( ShaderType  type,
const std::vector< std::string > &  sources 
)
pure virtual

Create.

Parameters
type= Shader Type
vector= std
virtual bool clan::ShaderObjectProvider::get_compile_status ( ) const
pure virtual

Returns true if compile succeeded.

virtual unsigned int clan::ShaderObjectProvider::get_handle ( ) const
pure virtual

Returns the OpenGL shader handle.

virtual std::string clan::ShaderObjectProvider::get_info_log ( ) const
pure virtual

Get shader object's info log.

virtual std::string clan::ShaderObjectProvider::get_shader_source ( ) const
pure virtual

Get shader source code.

virtual ShaderType clan::ShaderObjectProvider::get_shader_type ( ) const
pure virtual

Gets the shader type.


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