ork::TextureRectangle Class Reference
[render]

A rectangle texture. More...

#include <TextureRectangle.h>

Inheritance diagram for ork::TextureRectangle:
ork::Texture ork::Object

List of all members.

Public Member Functions

 TextureRectangle (int w, int h, TextureInternalFormat tf, TextureFormat f, PixelType t, const Parameters &params, const Buffer::Parameters &s, const Buffer &pixels)
 Creates a new rectangle texture.
virtual ~TextureRectangle ()
 Destroys this rectangle texture.
virtual int getWidth ()
 Returns the width of this texture.
virtual int getHeight ()
 Returns the height of this texture.
virtual void setSubImage (int level, int x, int y, int w, int h, TextureFormat f, PixelType t, const Buffer::Parameters &s, const Buffer &pixels)
 Replaces a part of the content of this texture.
virtual void setCompressedSubImage (int level, int x, int y, int w, int h, int s, const Buffer &pixels)
 Replaces a part of the content of this texture.

Protected Member Functions

 TextureRectangle ()
 Creates a new unitialized rectangle texture.
void init (int w, int h, 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.

Detailed Description

A rectangle texture.


Constructor & Destructor Documentation

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

Creates a new rectangle texture.

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

Destroys this rectangle texture.

ork::TextureRectangle::TextureRectangle (  )  [protected]

Creates a new unitialized rectangle texture.


Member Function Documentation

virtual int ork::TextureRectangle::getHeight (  )  [virtual]

Returns the height of this texture.

virtual int ork::TextureRectangle::getWidth (  )  [virtual]

Returns the width of this texture.

void ork::TextureRectangle::init ( int  w,
int  h,
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.
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 void ork::TextureRectangle::setCompressedSubImage ( int  level,
int  x,
int  y,
int  w,
int  h,
int  s,
const Buffer pixels 
) [virtual]

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.
w the width of the part to be replaced, in pixels.
h the height of the part to be replaced, in pixels.
s the size of 'pixels' in bytes.
pixels the pixels to be written into this texture LOD level.
virtual void ork::TextureRectangle::setSubImage ( int  level,
int  x,
int  y,
int  w,
int  h,
TextureFormat  f,
PixelType  t,
const Buffer::Parameters s,
const Buffer pixels 
) [virtual]

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.
w the width of the part to be replaced, in pixels.
h the height of the part to be replaced, in pixels.
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::TextureRectangle::h [protected]

The height of this texture.

int ork::TextureRectangle::w [protected]

The width of this texture.


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