Texture1D Class Reference

#include <VisTexture1D.hpp>

List of all members.

Public Member Functions

 Texture1D (GLuint sizeT, float *color=NULL, GLenum wrap=GL_CLAMP, GLenum mag_filter=GL_LINEAR, GLenum min_filter=GL_LINEAR_MIPMAP_LINEAR)
void updateColor (float *color)
GLuint getTrSize ()
void send_to_GPU ()
void build_mipmaps ()
void bind (GLuint texUnit)
GLuint get_texture_name ()

Public Attributes

float * pixels


Detailed Description

A wrapper for a 1D Texture.

Constructor & Destructor Documentation

Texture1D::Texture1D ( GLuint  sizeT,
float *  color = NULL,
GLenum  wrap = GL_CLAMP,
GLenum  mag_filter = GL_LINEAR,
GLenum  min_filter = GL_LINEAR_MIPMAP_LINEAR 
)

The constructor.

Parameters:
sizeT Size in pixels.
color Default color.
wrap Wrapping parameter.
mag_filter Magnification parameter.
min_filter Minification parameter.


Member Function Documentation

void Texture1D::bind ( GLuint  texUnit  ) 

Binds the texture to a certain texturing unit.

void Texture1D::build_mipmaps (  ) 

Builds mipmap

GLuint Texture1D::get_texture_name (  )  [inline]

Returns the texture name.

GLuint Texture1D::getTrSize (  ) 

Returns the size in pixels.

void Texture1D::send_to_GPU (  ) 

Loads the texture to on the GPU.

void Texture1D::updateColor ( float *  color  ) 

Updates the the color data.


Member Data Documentation

The pixel data.


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

Generated on Wed Dec 10 14:41:01 2008 by  doxygen 1.5.7.1