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

#include <MultiTexEffect.h>

Inheritance diagram for Ult::MultiTexEffect:
Ult::Effect

Public Member Functions

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

Protected Attributes

Texture mDecalTexture1
 
Texture mDecalTexture2
 
RenderInterfacemRenderer
 

Detailed Description

Effect applying two textures to render slots 0 and 1.

Constructor & Destructor Documentation

◆ MultiTexEffect()

Ult::MultiTexEffect::MultiTexEffect ( const char * decalFile1,
const char * decalFile2,
std::vector< FilterType > * filters,
RenderInterface * renderer )
inline

MultiTexEffect constructor. Loads the two textures from files decalFile1 and decalFile2, and applies the given filters to the textures.

◆ ~MultiTexEffect()

Ult::MultiTexEffect::~MultiTexEffect ( )
inline

MultiTexEffect destructor.

Member Function Documentation

◆ ApplyEffect()

void Ult::MultiTexEffect::ApplyEffect ( )
inlinevirtual

Make the renderer use the 2 textures in slots 0 and 1.

Implements Ult::Effect.

Member Data Documentation

◆ mDecalTexture1

Texture Ult::MultiTexEffect::mDecalTexture1
protected

◆ mDecalTexture2

Texture Ult::MultiTexEffect::mDecalTexture2
protected

◆ mRenderer

RenderInterface* Ult::MultiTexEffect::mRenderer
protected

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