Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
MultiTexEffect.h
Go to the documentation of this file.
1#ifndef ULT_MULTITEX_EFFECT_H_INCLUDED
2#define ULT_MULTITEX_EFFECT_H_INCLUDED
3
4#include "Effect.h"
6
7namespace Ult
8{
9
14class MultiTexEffect : public Effect
15{
16public:
23 const char* decalFile1, const char* decalFile2,
24 std::vector<FilterType>* filters,
25 RenderInterface* renderer)
26 {
27 mRenderer = renderer;
28 assert(mRenderer);
29 mRenderer->LoadTexFromFile(decalFile1, ULT_TEX2D_TYPE, &mDecalTexture1);
30 mRenderer->ApplyFilters(mDecalTexture1, filters);
31 mRenderer->LoadTexFromFile(decalFile2, ULT_TEX2D_TYPE, &mDecalTexture2);
32 mRenderer->ApplyFilters(mDecalTexture2, filters);
33 }
34
38 {
39 }
40
45 {
46 mRenderer->ApplyTexture(0, mDecalTexture1);
47 mRenderer->ApplyTexture(1, mDecalTexture2);
48 }
49
50protected:
53};
54
55} // namespace Ult
56
57#endif // ULT_MULTITEX_EFFECT_H_INCLUDED
58
Effect()
Definition Effect.h:30
MultiTexEffect(const char *decalFile1, const char *decalFile2, std::vector< FilterType > *filters, RenderInterface *renderer)
Definition MultiTexEffect.h:22
Texture mDecalTexture1
Definition MultiTexEffect.h:51
~MultiTexEffect()
Definition MultiTexEffect.h:37
RenderInterface * mRenderer
Definition MultiTexEffect.h:52
void ApplyEffect()
Definition MultiTexEffect.h:44
Texture mDecalTexture2
Definition MultiTexEffect.h:51
Definition RenderInterface.h:34
Definition Archive.h:13
Handle< stTexture > Texture
Definition Texture.h:10
@ ULT_TEX2D_TYPE
Definition TextureType.h:9