Rasterfarm-SDK
Loading...
Searching...
No Matches
Texel::Texture2D Class Reference

#include <texture2d.h>

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

Public Member Functions

 Texture2D (const Attribute &attribute, bool mixed=true, const char *baseSamplerName="s_texture2d")
 
 Texture2D (Engine::Texture *pTexture, const Attribute &attribute, bool mixed=true, const char *baseSamplerName="s_texture2d")
 
virtual ~Texture2D ()
 
virtual void create (Material *pMaterial)
 
virtual void update (Material *pMaterial)
 
virtual void addShaderResources (Material *pMaterial)
 
virtual void addShaderCode (Material *pMaterial)
 
Vector2fArraygetTextureCoord ()
 
void setTextureCoordArray (const Vector2fArray &array)
 
void setTextureCoord (const Vector2f &textureCoord, uint index)
 
- Public Member Functions inherited from Texel::Texture
 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 ()
 
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 ()
 

Static Public Attributes

static const String attributeString
 
static const String varyingString
 

Protected Attributes

Vector2fArray textureCoord
 
- Protected Attributes inherited from Texel::Texture
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

◆ Texture2D() [1/2]

Texel::Texture2D::Texture2D ( const Attribute & attribute,
bool mixed = true,
const char * baseSamplerName = "s_texture2d" )

◆ Texture2D() [2/2]

Texel::Texture2D::Texture2D ( Engine::Texture * pTexture,
const Attribute & attribute,
bool mixed = true,
const char * baseSamplerName = "s_texture2d" )

◆ ~Texture2D()

virtual Texel::Texture2D::~Texture2D ( )
virtual

Member Function Documentation

◆ addShaderCode()

virtual void Texel::Texture2D::addShaderCode ( Material * pMaterial)
virtual

◆ addShaderResources()

virtual void Texel::Texture2D::addShaderResources ( Material * pMaterial)
virtual

◆ create()

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

Reimplemented from Texel::Texture.

Reimplemented in Texel::BlurHorizontal2D, Texel::NN2D, and Texel::Normal2D.

◆ getTextureCoord()

Vector2fArray & Texel::Texture2D::getTextureCoord ( )
inline

◆ setTextureCoord()

void Texel::Texture2D::setTextureCoord ( const Vector2f & textureCoord,
uint index )

◆ setTextureCoordArray()

void Texel::Texture2D::setTextureCoordArray ( const Vector2fArray & array)

◆ update()

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

Reimplemented from Texel::Texture.

Reimplemented in Texel::BlurHorizontal2D, Texel::NN2D, and Texel::Normal2D.

Member Data Documentation

◆ attributeString

const String Texel::Texture2D::attributeString
static

◆ textureCoord

Vector2fArray Texel::Texture2D::textureCoord
protected

◆ varyingString

const String Texel::Texture2D::varyingString
static

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