API Documentation
Loading...
Searching...
No Matches
GLESShader Class Reference

A Shader for rendering default OpenGL logic to the graphics card. More...

#include <GLESShader.h>

Public Types

enum  ShaderPart { Vertex , Fragment , Geometry }
 
enum  ShaderType {
  e_simple_points , e_points , e_linework , e_solid ,
  e_solid_grid , e_solid_texture , e_shader_type_size , e_all
}
 

Public Member Functions

void bind ()
 
void compile (ShaderPart type, const char *src)
 
void compileAndLink ()
 
void compileShader (ShaderPart type, const String &shader)
 
 GLESShader (ShaderType type, bool is_integer, const DynamicPointer< GLESGraphicsDevice > &device)
 
uint04 id () const
 
void linkShader ()
 
template<class t_type >
void setUniformValue (const char *const location, const t_type &value)
 
void setUniformValue (int location, const Buffer< fltp04 > &value)
 
void setUniformValue (int location, const fltp04 &value)
 
template<size_t t_size>
void setUniformValue (int location, const fltp04(&value)[t_size])
 
void setUniformValue (int location, const Matrix< fltp04 > &value)
 
void setUniformValue (int location, const RGBColor &value)
 
template<size_t t_size>
void setUniformValue (int location, const RGBColor(&value)[t_size])
 
void setUniformValue (int location, const uint04 &value)
 
template<size_t t_size>
void setUniformValue (int location, const uint04(&value)[t_size])
 
void setUniformValue (int location, const Vector< 3, fltp04 > &value)
 
void setUniformValue (int location, const Vector< 3, sint04 > &value)
 
void setUniformValue (int location, const Vector< 4, fltp04 > &value)
 
void setUniformValue (int location, const Vector< 4, sint04 > &value)
 
template<uint01 t_size>
void setUniformValue (int location, const Vector< t_size, fltp04 > &value)
 
template<uint01 t_size>
void setUniformValue (int location, const Vector< t_size, RGBColor > &value)
 
int uniformLocation (const char *const location) const
 
String versionedShaderCode (ShaderPart type, const char *src) const
 
 ~GLESShader ()
 

Detailed Description

A Shader for rendering default OpenGL logic to the graphics card.


Member Enumeration Documentation

◆ ShaderPart

enum ShaderPart
Enumerator
Vertex 
Fragment 
Geometry 

◆ ShaderType

enum ShaderType
Enumerator
e_simple_points 
e_points 
e_linework 
e_solid 
e_solid_grid 
e_solid_texture 
e_shader_type_size 
e_all 

Constructor & Destructor Documentation

◆ GLESShader()

GLESShader ( ShaderType type,
bool is_integer,
const DynamicPointer< GLESGraphicsDevice > & device )

◆ ~GLESShader()

~GLESShader ( )

Member Function Documentation

◆ bind()

void bind ( )

◆ compile()

void compile ( ShaderPart type,
const char * src )

◆ compileAndLink()

void compileAndLink ( )

◆ compileShader()

void compileShader ( ShaderPart type,
const String & shader )

◆ id()

uint04 id ( ) const

◆ linkShader()

void linkShader ( )

◆ setUniformValue() [1/15]

template<class t_type >
void setUniformValue ( const char *const location,
const t_type & value )
inline

◆ setUniformValue() [2/15]

void setUniformValue ( int location,
const Buffer< fltp04 > & value )

◆ setUniformValue() [3/15]

void setUniformValue ( int location,
const fltp04 & value )

◆ setUniformValue() [4/15]

template<size_t t_size>
void setUniformValue ( int location,
const fltp04(&) value[t_size] )
inline

◆ setUniformValue() [5/15]

void setUniformValue ( int location,
const Matrix< fltp04 > & value )

◆ setUniformValue() [6/15]

void setUniformValue ( int location,
const RGBColor & value )

◆ setUniformValue() [7/15]

template<size_t t_size>
void setUniformValue ( int location,
const RGBColor(&) value[t_size] )
inline

◆ setUniformValue() [8/15]

void setUniformValue ( int location,
const uint04 & value )

◆ setUniformValue() [9/15]

template<size_t t_size>
void setUniformValue ( int location,
const uint04(&) value[t_size] )
inline

◆ setUniformValue() [10/15]

void setUniformValue ( int location,
const Vector< 3, fltp04 > & value )

◆ setUniformValue() [11/15]

void setUniformValue ( int location,
const Vector< 3, sint04 > & value )

◆ setUniformValue() [12/15]

void setUniformValue ( int location,
const Vector< 4, fltp04 > & value )

◆ setUniformValue() [13/15]

void setUniformValue ( int location,
const Vector< 4, sint04 > & value )

◆ setUniformValue() [14/15]

template<uint01 t_size>
void setUniformValue ( int location,
const Vector< t_size, fltp04 > & value )
inline

◆ setUniformValue() [15/15]

template<uint01 t_size>
void setUniformValue ( int location,
const Vector< t_size, RGBColor > & value )
inline

◆ uniformLocation()

int uniformLocation ( const char *const location) const

◆ versionedShaderCode()

String versionedShaderCode ( ShaderPart type,
const char * src ) const

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