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

Public Member Functions

AlphaShader & SetAlpha (GL::Texture value)
 Sets alpha texture. More...
 
AlphaShader & SetTextureCoords (const GL::QuadTextureCoords &value)
 Sets texture coordinates. More...
 
AlphaShader & SetTint (const Graphics::RGBAf &value)
 
AlphaShader & SetVertexCoords (const GL::QuadVertices &value)
 

Static Public Member Functions

static AlphaShader & Use (ShaderMode mode=ShaderMode::Normal)
 

Member Function Documentation

◆ SetAlpha()

AlphaShader& SetAlpha ( GL::Texture  value)

Sets alpha texture.

References glActiveTexture.

◆ SetTextureCoords()

AlphaShader& SetTextureCoords ( const GL::QuadTextureCoords &  value)

Sets texture coordinates.

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

◆ SetTint()

AlphaShader& SetTint ( const Graphics::RGBAf &  value)

◆ SetVertexCoords()

AlphaShader& SetVertexCoords ( const GL::QuadVertices &  value)

◆ Use()


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