ork::Texture2DArray Class Reference
[render]

A 2D array texture. More...

#include <Texture2DArray.h>

Inheritance diagram for ork::Texture2DArray:
ork::Texture ork::Object

List of all members.

Public Member Functions

 Texture2DArray (int w, int h, int l, TextureInternalFormat tf, TextureFormat f, PixelType t, const Parameters &params, const Buffer::Parameters &s, const Buffer &pixels)
 Creates a new 2D texture array.
virtual ~Texture2DArray ()
 Destroys this 2D texture.
int getWidth ()
 Returns the width of this texture.
int getHeight ()
 Returns the height of this texture.
int getLayers ()
 Returns the number of layers of this texture.
void setSubImage (int level, int x, int y, int l, int w, int h, 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 y, int l, int w, int h, int d, int s, const Buffer &pixels)
 Replaces a part of the content of this texture.

Protected Member Functions

 Texture2DArray ()
 Creates a new unitialized 2DArray texture.
void init (int w, int h, 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 h
 The height of this texture.
int l
 The number of this layers of this texture.

Detailed Description

A 2D array texture.


Constructor & Destructor Documentation

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

Creates a new 2D texture array.

Parameters:
w the width of this texture in pixels.
h the height 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::Texture2DArray::~Texture2DArray (  )  [virtual]

Destroys this 2D texture.

ork::Texture2DArray::Texture2DArray (  )  [protected]

Creates a new unitialized 2DArray texture.


Member Function Documentation

int ork::Texture2DArray::getHeight (  ) 

Returns the height of this texture.

int ork::Texture2DArray::getLayers (  ) 

Returns the number of layers of this texture.

int ork::Texture2DArray::getWidth (  ) 

Returns the width of this texture.

void ork::Texture2DArray::init ( int  w,
int  h,
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.
h the height 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::Texture2DArray::setCompressedSubImage ( int  level,
int  x,
int  y,
int  l,
int  w,
int  h,
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 lower left corner of the part to be replaced, in pixels.
y lower left corner of the part to be replaced, in pixels.
l first layer of the part to be replaced.
w the width of the part to be replaced, in pixels.
h the height 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::Texture2DArray::setSubImage ( int  level,
int  x,
int  y,
int  l,
int  w,
int  h,
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 lower left corner of the part to be replaced, in pixels.
y lower left corner of the part to be replaced, in pixels.
l first layer of the part to be replaced.
w the width of the part to be replaced, in pixels.
h the height 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::Texture2DArray::h [protected]

The height of this texture.

int ork::Texture2DArray::l [protected]

The number of this layers of this texture.

int ork::Texture2DArray::w [protected]

The width of this texture.


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