ork::ValueSampler Class Reference
[render]

A Value holding a Texture value. More...

#include <Value.h>

Inheritance diagram for ork::ValueSampler:
ork::Value ork::Object

List of all members.

Public Member Functions

 ValueSampler (UniformType type, const string &name)
 Creates an uninitialized ValueSampler.
 ValueSampler (UniformType type, const string &name, ptr< Texture > value)
 Creates a ValueSampler.
virtual ~ValueSampler ()
 Deletes this ValueSampler.
virtual UniformType getType () const
 Returns the type of this value.
ptr< Textureget () const
 Returns the current value of this ValueSampler.
void set (const ptr< Texture > value)
 Sets the value of this uniform.

Detailed Description

A Value holding a Texture value.


Constructor & Destructor Documentation

ork::ValueSampler::ValueSampler ( UniformType  type,
const string &  name 
)

Creates an uninitialized ValueSampler.

ork::ValueSampler::ValueSampler ( UniformType  type,
const string &  name,
ptr< Texture value 
)

Creates a ValueSampler.

virtual ork::ValueSampler::~ValueSampler (  )  [virtual]

Deletes this ValueSampler.


Member Function Documentation

ptr<Texture> ork::ValueSampler::get (  )  const

Returns the current value of this ValueSampler.

virtual UniformType ork::ValueSampler::getType (  )  const [virtual]

Returns the type of this value.

Implements ork::Value.

void ork::ValueSampler::set ( const ptr< Texture value  ) 

Sets the value of this uniform.

Parameters:
value the new value for this ValueSampler.

Generated on Mon Oct 18 09:36:11 2010 for ork by  doxygen 1.6.1