A cube array texture. More...
#include <TextureCubeArray.h>
Public Member Functions | |
TextureCubeArray (int w, int h, int l, TextureInternalFormat tf, TextureFormat f, PixelType t, const Parameters ¶ms, Buffer::Parameters s, const Buffer &pixels) | |
Creates a new cube texture. | |
virtual | ~TextureCubeArray () |
Destroys this cube 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. | |
Protected Member Functions | |
TextureCubeArray () | |
Creates a new unitialized Cube texture. | |
void | init (int w, int h, int l, TextureInternalFormat tf, TextureFormat f, PixelType t, const Parameters ¶ms, 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 layers of this texture. |
A cube array texture.
ork::TextureCubeArray::TextureCubeArray | ( | int | w, | |
int | h, | |||
int | l, | |||
TextureInternalFormat | tf, | |||
TextureFormat | f, | |||
PixelType | t, | |||
const Parameters & | params, | |||
Buffer::Parameters | s, | |||
const Buffer & | pixels | |||
) |
Creates a new cube texture.
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. The pixels must be specified as in a 3D texture, with one face per layer. The faces must be specified in the following order: POSITIVE_X, NEGATIVE_X, POSITIVE_Y, NEGATIVE_Y, POSITIVE_Z, and NEGATIVE_Z of the first cube map layer, then the six faces of the second layer, in the same order, and so on for all layers. |
virtual ork::TextureCubeArray::~TextureCubeArray | ( | ) | [virtual] |
Destroys this cube texture.
ork::TextureCubeArray::TextureCubeArray | ( | ) | [protected] |
Creates a new unitialized Cube texture.
int ork::TextureCubeArray::getHeight | ( | ) |
Returns the height of this texture.
int ork::TextureCubeArray::getLayers | ( | ) |
Returns the number of layers of this texture.
int ork::TextureCubeArray::getWidth | ( | ) |
Returns the width of this texture.
void ork::TextureCubeArray::init | ( | int | w, | |
int | h, | |||
int | l, | |||
TextureInternalFormat | tf, | |||
TextureFormat | f, | |||
PixelType | t, | |||
const Parameters & | params, | |||
Buffer::Parameters | s, | |||
const Buffer & | pixels | |||
) | [protected] |
Initializes this texture.
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. The pixels must be specified as in a 3D texture, with one face per layer. The faces must be specified in the following order: POSITIVE_X, NEGATIVE_X, POSITIVE_Y, NEGATIVE_Y, POSITIVE_Z, and NEGATIVE_Z of the first cube map layer, then the six faces of the second layer, in the same order, and so on for all layers. |
int ork::TextureCubeArray::h [protected] |
The height of this texture.
int ork::TextureCubeArray::l [protected] |
The number of layers of this texture.
int ork::TextureCubeArray::w [protected] |
The width of this texture.