Vis::Texture1D Class Reference

#include <VisTexture1D.h>

List of all members.

Public Member Functions

 Texture1D ()
 ~Texture1D ()
void setData (int width, GLint internalFormat, GLenum format, GLenum type, bool mipmap, void *data)
void setParameter (GLenum wrapS, GLenum mag, GLenum min)
GLuint getTextureId () const
void bind ()
void unbind ()
int getWidth () const


Detailed Description

1D Texture.

Constructor & Destructor Documentation

Vis::Texture1D::Texture1D (  ) 

ctor.

Vis::Texture1D::~Texture1D (  ) 

dtor.


Member Function Documentation

void Vis::Texture1D::bind (  ) 

Bind the texture.

GLuint Vis::Texture1D::getTextureId (  )  const

Return the texture handle.

Returns:
handle to the texture.

int Vis::Texture1D::getWidth (  )  const

Return the width of the texture.

Returns:
width of the texture.

void Vis::Texture1D::setData ( int  width,
GLint  internalFormat,
GLenum  format,
GLenum  type,
bool  mipmap,
void *  data 
)

Set the texture data.

Parameters:
width width of the texture.
internalFormat internal format of the texture.
format format of the texture.
type data type
mipmap true to generate mipmaps, false no mipmap generation.

void Vis::Texture1D::setParameter ( GLenum  wrapS,
GLenum  mag,
GLenum  min 
)

Set texture paramters, for clamping an min and magnification.

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

void Vis::Texture1D::unbind (  ) 

Unbind 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