Gorgon Game Engine
SimpleShader Class Reference
Inheritance diagram for SimpleShader:
[legend]

Public Member Functions

SimpleShaderSetDiffuse (GL::Texture value)
 Sets diffuse texture. More...
 
SimpleShaderSetTextureCoords (const GL::QuadTextureCoords &value)
 Sets texture coordinates. More...
 
SimpleShaderSetTint (const Graphics::RGBAf &value)
 
SimpleShaderSetVertexCoords (const GL::QuadVertices &value)
 

Static Public Member Functions

static SimpleShaderUse (ShaderMode mode=ShaderMode::Normal)
 

Member Function Documentation

◆ SetDiffuse()

SimpleShader& SetDiffuse ( GL::Texture  value)

Sets diffuse texture.

References glActiveTexture.

◆ SetTextureCoords()

SimpleShader& SetTextureCoords ( const GL::QuadTextureCoords value)

Sets texture coordinates.

References Shader::LocateUniform(), and Shader::UpdateUniform().

◆ SetTint()

SimpleShader& SetTint ( const Graphics::RGBAf value)

◆ SetVertexCoords()

SimpleShader& SetVertexCoords ( const GL::QuadVertices value)

◆ Use()


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