#include <VisTexture1D.hpp>
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 |
| 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.
| sizeT | Size in pixels. | |
| color | Default color. | |
| wrap | Wrapping parameter. | |
| mag_filter | Magnification parameter. | |
| min_filter | Minification parameter. |
| 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.
| float* Texture1D::pixels |
The pixel data.
1.5.7.1