Vis::Texture3D Class Reference

#include <VisTexture3D.h>

List of all members.

Public Member Functions

 Texture3D ()
 ~Texture3D ()
void setData (int width, int height, int depth, bool mipmap)
void setData (int width, int height, int depth, bool mipmap, void *data)
void setSubData (int width, int height, int depth, void *data)
void setParameter (GLenum wrapS, GLenum wrapT, GLenum wrapR, GLenum mag, GLenum min)
GLuint getTextureId () const
void bind ()
void unbind ()
int getWidth () const
int getHeight () const
int getDepth () const


Detailed Description

3D Texture.

Constructor & Destructor Documentation

Vis::Texture3D::Texture3D (  ) 

ctor.

Vis::Texture3D::~Texture3D (  ) 

dtor.


Member Function Documentation

void Vis::Texture3D::bind (  ) 

Bind the texture.

int Vis::Texture3D::getDepth (  )  const

Return the depth of the texture.

Returns:
depth of the texture.

int Vis::Texture3D::getHeight (  )  const

Return the height of the texture.

Returns:
height of the texture.

GLuint Vis::Texture3D::getTextureId (  )  const

Return the texture handle.

Returns:
handle to the texture.

int Vis::Texture3D::getWidth (  )  const

Return the width of the texture.

Returns:
width of the texture.

void Vis::Texture3D::setData ( int  width,
int  height,
int  depth,
bool  mipmap,
void *  data 
)

Set the texture data, with empty data.

Parameters:
width width of the texture.
height height of the texture.
depth depth of the texture.
mipmap true to generate mipmaps, false no mipmap generation.
data texture data.

void Vis::Texture3D::setData ( int  width,
int  height,
int  depth,
bool  mipmap 
)

Set the texture data, with empty data.

Parameters:
width width of the texture.
height height of the texture.
depth depth of the texture.
mipmap true to generate mipmaps, false no mipmap generation.

void Vis::Texture3D::setParameter ( GLenum  wrapS,
GLenum  wrapT,
GLenum  wrapR,
GLenum  mag,
GLenum  min 
)

Set texture paramters, for clamping an min and magnification.

Parameters:
wrapS clamping
wrapT clamping
wrapR clamping
mag magnification paramter.
min minification parameter.

void Vis::Texture3D::setSubData ( int  width,
int  height,
int  depth,
void *  data 
)

Set an sub area of the texture with data.

Parameters:
width width of the texture.
height height of the texture.
depth depth of the texture.
data texture data.

void Vis::Texture3D::unbind (  ) 

Unind the texture.


The documentation for this class was generated from the following files:

Generated on Mon Jan 26 15:00:42 2009 for FlowVis by  doxygen 1.5.7.1