Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
Ult::TextureShader Class Reference

#include <TextureShader.h>

Inheritance diagram for Ult::TextureShader:
Ult::Effect

Public Member Functions

 TextureShader (const char *vs, const char *ps, const char *decalFile, std::vector< FilterType > *filters, RenderInterface *renderer)
 
 ~TextureShader ()
 
void ApplyEffect ()
 
void Release ()
 
- Public Member Functions inherited from Ult::Effect
 Effect ()
 
virtual ~Effect ()
 

Protected Attributes

ShaderHandle mShader
 
ParameterHandle mMvpParam
 
ParameterHandle mDecalParam
 
Texture mDecalTexture
 
RenderInterfacemRenderer
 

Detailed Description

Represents a 3d shader that uses a single texture.

Constructor & Destructor Documentation

◆ TextureShader()

Ult::TextureShader::TextureShader ( const char * vs,
const char * ps,
const char * decalFile,
std::vector< FilterType > * filters,
RenderInterface * renderer )
inline

TextureShader constructor. Creates the shaders and loads the texture from the given filenames.

◆ ~TextureShader()

Ult::TextureShader::~TextureShader ( )
inline

TextureShader destructor.

Member Function Documentation

◆ ApplyEffect()

void Ult::TextureShader::ApplyEffect ( )
inlinevirtual

Make the renderer use this shader and texture via slot 0.

Implements Ult::Effect.

◆ Release()

void Ult::TextureShader::Release ( )
inlinevirtual

Free/unload this effect.

Reimplemented from Ult::Effect.

Member Data Documentation

◆ mDecalParam

ParameterHandle Ult::TextureShader::mDecalParam
protected

◆ mDecalTexture

Texture Ult::TextureShader::mDecalTexture
protected

◆ mMvpParam

ParameterHandle Ult::TextureShader::mMvpParam
protected

◆ mRenderer

RenderInterface* Ult::TextureShader::mRenderer
protected

◆ mShader

ShaderHandle Ult::TextureShader::mShader
protected

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