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

#include <nn2d.h>

Inheritance diagram for Texel::NN2D:
Texel::Texture2D Texel::Texture Texel::Sampler Component

Public Member Functions

 NN2D (Engine::Texture *pTexture, const Attribute &attribute)
 
virtual ~NN2D ()
 
virtual void create (Material *pMaterial)
 
virtual void update (Material *pMaterial)
 
virtual void addShaderResources (Material *pMaterial)
 
virtual void addShaderCode (Material *pMaterial)
 
- Public Member Functions inherited from Texel::Texture2D
 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 ()
 
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 ()
 

Additional Inherited Members

- Static Public Attributes inherited from Texel::Texture2D
static const String attributeString
 
static const String varyingString
 
- Protected Member Functions inherited from Texel::Sampler
void setSamplerName (uint samplerIndex)
 
- Protected Attributes inherited from Texel::Texture2D
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
 

Detailed Description

Nearest-neighbor interpolation filter

Constructor & Destructor Documentation

◆ NN2D()

Texel::NN2D::NN2D ( Engine::Texture * pTexture,
const Attribute & attribute )

◆ ~NN2D()

virtual Texel::NN2D::~NN2D ( )
virtual

Member Function Documentation

◆ addShaderCode()

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

Reimplemented from Texel::Texture2D.

◆ addShaderResources()

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

Reimplemented from Texel::Texture2D.

◆ create()

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

Reimplemented from Texel::Texture2D.

◆ update()

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

Reimplemented from Texel::Texture2D.


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