ork::TextureBuffer Class Reference
[render]

A buffer texture. More...

#include <TextureBuffer.h>

Inheritance diagram for ork::TextureBuffer:
ork::Texture ork::Object

List of all members.

Public Member Functions

 TextureBuffer (TextureInternalFormat tf, ptr< GPUBuffer > pixels)
 Creates a new buffer texture.
virtual ~TextureBuffer ()
 Destroys this buffer texture.
int getWidth ()
 Returns the width of this texture.
ptr< GPUBuffergetBuffer ()
 Returns the buffer holding the texture's texel array.

Protected Attributes

int w
 The width of this texture.
ptr< GPUBufferb
 The buffer holding the texture's texel array.

Detailed Description

A buffer texture.

A buffer texture is similar to a one-dimensional texture. However, unlike other texture types, the texel array is not stored as part of the texture. Instead, a buffer object is attached to a buffer texture and the texel array is taken from the data store of an attached buffer object. When the contents of a buffer object's data store are modified, those changes are reflected in the contents of any buffer texture to which the buffer object is attached. Also unlike other textures, buffer textures do not have multiple image levels; only a single data store is available.


Constructor & Destructor Documentation

ork::TextureBuffer::TextureBuffer ( TextureInternalFormat  tf,
ptr< GPUBuffer pixels 
)

Creates a new buffer texture.

Parameters:
tf texture data format in 'pixels'.
pixels the buffer holding the texture's texel array.
virtual ork::TextureBuffer::~TextureBuffer (  )  [virtual]

Destroys this buffer texture.


Member Function Documentation

ptr<GPUBuffer> ork::TextureBuffer::getBuffer (  ) 

Returns the buffer holding the texture's texel array.

int ork::TextureBuffer::getWidth (  ) 

Returns the width of this texture.


Member Data Documentation

The buffer holding the texture's texel array.

int ork::TextureBuffer::w [protected]

The width of this texture.


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