Rasterfarm-SDK
Loading...
Searching...
No Matches
Texel::Texture Class Referenceabstract

#include <texture.h>

Inheritance diagram for Texel::Texture:
Texel::Sampler Component Texel::Reflection2D Texel::Shadow2D Texel::Texture2D Texel::TextureCube Texel::BlurHorizontal2D Texel::NN2D Texel::Normal2D Texel::BlurHorizontal2D5 Texel::BlurHorizontal2D9

Public Member Functions

 Texture (const char *baseSamplerName, TextureType target, const Attribute &attribute, bool projection, bool mixed)
 
 Texture (Engine::Texture *pTexture, const char *baseSamplerName, TextureType target, const Attribute &attribute, bool projection, bool mixed)
 
virtual ~Texture ()
 
virtual void create (Material *pMaterial)
 
virtual void update (Material *pMaterial)
 
virtual void addShaderResources (Material *pMaterial)=0
 
virtual void addShaderCode (Material *pMaterial)=0
 
Engine::Texture * getTexture ()
 
virtual void setTexture (Engine::Texture *pTexture)
 
bool isProjection ()
 
bool isMixed ()
 
- Public Member Functions inherited from Texel::Sampler
 Sampler (const char *samplerName, const Attribute &attribute)
 
virtual ~Sampler ()
 
uint getSamplerIndex ()
 

Protected Attributes

Engine::Texture * pTexture
 
TextureType target
 
bool projection
 
bool mixed
 
- Protected Attributes inherited from Texel::Sampler
String samplerName
 
TextureUnit samplerIndex
 

Additional Inherited Members

- Protected Member Functions inherited from Texel::Sampler
void setSamplerName (uint samplerIndex)
 

Constructor & Destructor Documentation

◆ Texture() [1/2]

Texel::Texture::Texture ( const char * baseSamplerName,
TextureType target,
const Attribute & attribute,
bool projection,
bool mixed )

◆ Texture() [2/2]

Texel::Texture::Texture ( Engine::Texture * pTexture,
const char * baseSamplerName,
TextureType target,
const Attribute & attribute,
bool projection,
bool mixed )

◆ ~Texture()

virtual Texel::Texture::~Texture ( )
virtual

Member Function Documentation

◆ addShaderCode()

◆ addShaderResources()

virtual void Texel::Texture::addShaderResources ( Material * pMaterial)
pure virtual

◆ create()

virtual void Texel::Texture::create ( Material * pMaterial)
virtual

◆ getTexture()

Engine::Texture * Texel::Texture::getTexture ( )
inline

◆ isMixed()

bool Texel::Texture::isMixed ( )
inline
Returns
True if the sampled Texture is mixed in the fragment-shader.

◆ isProjection()

bool Texel::Texture::isProjection ( )
inline
Returns
True if the sampled Texture is projected in the fragment-shader.

◆ setTexture()

virtual void Texel::Texture::setTexture ( Engine::Texture * pTexture)
virtual
Parameters
Releasethe current texture if set and set the pointer to a Texture or nullptr.

◆ update()

virtual void Texel::Texture::update ( Material * pMaterial)
virtual

Member Data Documentation

◆ mixed

bool Texel::Texture::mixed
protected

◆ projection

bool Texel::Texture::projection
protected

◆ pTexture

Engine::Texture* Texel::Texture::pTexture
protected

◆ target

TextureType Texel::Texture::target
protected

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