Rasterfarm-SDK
Loading...
Searching...
No Matches
UniformSampler Class Reference

#include <uniform.h>

Inheritance diagram for UniformSampler:
UniformValue1i UniformValue< int > UniformBuffer< int > Uniform DynamicType

Public Member Functions

 UniformSampler (Handle binding, Texture *pTexture, TextureType textureType)
 
 UniformSampler (Handle binding, TextureUnit textureUnit, TextureType textureType)
 
virtual ~UniformSampler ()
 
virtual void submit (Program *pProgram)
 
TexturegetTexture ()
 
TextureType getTextureType ()
 
void setTexture (Texture *pTexture, TextureType textureType)
 
- Public Member Functions inherited from UniformValue1i
 UniformValue1i (Handle binding, int value)
 
- Public Member Functions inherited from UniformValue< int >
 UniformValue (Handle binding, int value)
 
void set (int v)
 
 ~UniformValue ()
 
- Public Member Functions inherited from UniformBuffer< int >
 UniformBuffer (Handle binding, int *pBuffer, int count)
 
virtual ~UniformBuffer ()
 
void setBuffer (int *pBuffer)
 
- Public Member Functions inherited from Uniform
 Uniform (Handle binding, UniformBufferHandle ubo, uint count)
 
virtual ~Uniform ()
 
UniformBufferHandle getBufferObjectHandle ()
 
uint getCount () const
 
- Public Member Functions inherited from DynamicType
 DynamicType ()
 
template<class C >
void addType ()
 
TypeID getDerivedTypeId () const
 
template<class C >
const bool isType () const
 
template<class C >
const C * cast () const
 
template<class C >
C * cast ()
 
template<class FROM , class TO >
TO * cast ()
 
template<class FROM , class TO >
const TO * cast () const
 

Protected Attributes

TexturepTexture
 
TextureType textureType
 
- Protected Attributes inherited from UniformValue< int >
int value
 
- Protected Attributes inherited from UniformBuffer< int >
intpBuffer
 
- Protected Attributes inherited from Uniform
Handle binding
 
UniformBufferHandle ubo
 
uint count
 

Constructor & Destructor Documentation

◆ UniformSampler() [1/2]

UniformSampler::UniformSampler ( Handle binding,
Texture * pTexture,
TextureType textureType )

◆ UniformSampler() [2/2]

UniformSampler::UniformSampler ( Handle binding,
TextureUnit textureUnit,
TextureType textureType )

◆ ~UniformSampler()

virtual UniformSampler::~UniformSampler ( )
virtual

Member Function Documentation

◆ getTexture()

Texture * UniformSampler::getTexture ( )
inline

◆ getTextureType()

TextureType UniformSampler::getTextureType ( )
inline

◆ setTexture()

void UniformSampler::setTexture ( Texture * pTexture,
TextureType textureType )

◆ submit()

virtual void UniformSampler::submit ( Program * pProgram)
virtual

Reimplemented from UniformValue1i.

Member Data Documentation

◆ pTexture

Texture* UniformSampler::pTexture
protected

◆ textureType

TextureType UniformSampler::textureType
protected

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