Otclient  14/8/2020
Shader Class Reference

#include <shader.h>

Inheritance diagram for Shader:
Collaboration diagram for Shader:

Public Types

enum  ShaderType { Vertex, Fragment }
 

Public Member Functions

 Shader (ShaderType shaderType)
 
 ~Shader ()
 
bool compileSourceCode (const std::string &sourceCode)
 
bool compileSourceFile (const std::string &sourceFile)
 
std::string log ()
 
uint getShaderId ()
 
ShaderType getShaderType ()
 
- Public Member Functions inherited from stdext::shared_object
 shared_object ()
 
virtual ~shared_object ()
 
void add_ref ()
 
void dec_ref ()
 
refcount_t ref_count ()
 
template<typename T >
stdext::shared_object_ptr< T > static_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > dynamic_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > const_self_cast ()
 

Detailed Description

Definition at line 28 of file shader.h.

Member Enumeration Documentation

◆ ShaderType

Enumerator
Vertex 
Fragment 

Definition at line 31 of file shader.h.

Constructor & Destructor Documentation

◆ Shader()

Shader::Shader ( Shader::ShaderType  shaderType)

Definition at line 29 of file shader.cpp.

Here is the call graph for this function:

◆ ~Shader()

Shader::~Shader ( )

Definition at line 45 of file shader.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ compileSourceCode()

bool Shader::compileSourceCode ( const std::string &  sourceCode)

Definition at line 54 of file shader.cpp.

Here is the caller graph for this function:

◆ compileSourceFile()

bool Shader::compileSourceFile ( const std::string &  sourceFile)

Definition at line 80 of file shader.cpp.

Here is the call graph for this function:

◆ getShaderId()

uint Shader::getShaderId ( )
inline

Definition at line 43 of file shader.h.

◆ getShaderType()

ShaderType Shader::getShaderType ( )
inline

Definition at line 44 of file shader.h.

◆ log()

std::string Shader::log ( )

Definition at line 91 of file shader.cpp.


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