ork::Texture1DArray Class Reference
[render]

A 1D array texture. More...

#include <Texture1DArray.h>

Inheritance diagram for ork::Texture1DArray:
ork::Texture ork::Object

List of all members.

Public Member Functions

 Texture1DArray (int w, int l, TextureInternalFormat tf, TextureFormat f, PixelType t, const Parameters &params, const Buffer::Parameters &s, const Buffer &pixels)
 Creates a new 1D array texture.
virtual ~Texture1DArray ()
 Destroys this 1D array texture.
int getWidth ()
 Returns the width of this texture.
int getLayers ()
 Returns the number of layers of this texture.
void setSubImage (int level, int x, int l, int w, int d, TextureFormat f, PixelType t, const Buffer::Parameters &s, const Buffer &pixels)
 Replaces a part of the content of this texture.
void setCompressedSubImage (int level, int x, int l, int w, int d, int s, const Buffer &pixels)
 Replaces a part of the content of this texture.

Protected Member Functions

 Texture1DArray ()
 Creates a new unitialized 1D texture.
void init (int w, int l, TextureInternalFormat tf, TextureFormat f, PixelType t, const Parameters &params, const Buffer::Parameters &s, const Buffer &pixels)
 Initializes this texture.

Protected Attributes

int w
 The width of this texture.
int l
 The number of this layers of this texture.

Detailed Description

A 1D array texture.


Constructor & Destructor Documentation

ork::Texture1DArray::Texture1DArray ( int  w,
int  l,
TextureInternalFormat  tf,
TextureFormat  f,
PixelType  t,
const Parameters params,
const Buffer::Parameters s,
const Buffer pixels 
)

Creates a new 1D array texture.

Parameters:
w the width of this texture in pixels.
l the number of layers of this texture.
tf texture data format on GPU.
f the texture components in 'pixels'.
t the type of each component in 'pixels'.
params optional additional texture parameters.
s optional pixel storage parameters for 'pixels'.
pixels the pixels to be written into this texture.
virtual ork::Texture1DArray::~Texture1DArray (  )  [virtual]

Destroys this 1D array texture.

ork::Texture1DArray::Texture1DArray (  )  [protected]

Creates a new unitialized 1D texture.


Member Function Documentation

int ork::Texture1DArray::getLayers (  ) 

Returns the number of layers of this texture.

int ork::Texture1DArray::getWidth (  ) 

Returns the width of this texture.

void ork::Texture1DArray::init ( int  w,
int  l,
TextureInternalFormat  tf,
TextureFormat  f,
PixelType  t,
const Parameters params,
const Buffer::Parameters s,
const Buffer pixels 
) [protected]

Initializes this texture.

Parameters:
w the width of this texture in pixels.
l the number of layers of this texture.
tf texture data format on GPU.
f the texture components in 'pixels'.
t the type of each component in 'pixels'.
params optional additional texture parameters.
s optional pixel storage parameters for 'pixels'.
pixels the pixels to be written into this texture.
void ork::Texture1DArray::setCompressedSubImage ( int  level,
int  x,
int  l,
int  w,
int  d,
int  s,
const Buffer pixels 
)

Replaces a part of the content of this texture.

Parameters:
level the LOD level to be changed.
x the left border of the part to be replaced, in pixels.
l first layer of the part to be replaced.
w the size of the part to be replaced, in pixels.
d number of layers of the part to be replaced.
s the size of 'pixels' in bytes.
pixels the pixels to be written into this texture LOD level.
void ork::Texture1DArray::setSubImage ( int  level,
int  x,
int  l,
int  w,
int  d,
TextureFormat  f,
PixelType  t,
const Buffer::Parameters s,
const Buffer pixels 
)

Replaces a part of the content of this texture.

Parameters:
level the LOD level to be changed.
x the left border of the part to be replaced, in pixels.
l first layer of the part to be replaced.
w the size of the part to be replaced, in pixels.
d number of layers of the part to be replaced.
f the texture components in 'pixels'.
t the type of each component in 'pixels'.
s optional pixel storage parameters for 'pixels'.
pixels the pixels to be written into this texture LOD level.

Member Data Documentation

int ork::Texture1DArray::l [protected]

The number of this layers of this texture.

int ork::Texture1DArray::w [protected]

The width of this texture.


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