KrisLibrary
1.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
GLdraw
GLTexture1D.h
1
#ifndef GL_TEXTURE_1D_H
2
#define GL_TEXTURE_1D_H
3
4
#include "GLTextureObject.h"
5
#include "ColorGradient.h"
6
7
namespace
GLDraw
{
8
12
class
GLTexture1D
13
{
14
public
:
15
GLTexture1D
();
16
void
setLuminance(
const
unsigned
char
* data,
int
n);
17
void
setRGB(
const
unsigned
char
* data,
int
n);
18
void
setRGBA(
const
unsigned
char
* data,
int
n);
19
void
setAlpha(
const
unsigned
char
* data,
int
n);
20
void
setLuminance(
const
ColorGradient
& grad,
int
n);
21
void
setRGB(
const
ColorGradient
& grad,
int
n);
22
void
setRGBA(
const
ColorGradient
& grad,
int
n);
23
void
setAlpha(
const
ColorGradient
& grad,
int
n);
24
void
setFilterLinear();
25
void
setFilterNearest();
26
void
setWrapClamp();
27
void
setWrapRepeat();
28
void
setCurrentGL();
29
30
GLTextureObject
texObj;
31
};
32
33
}
//namespace GLDraw
34
35
#endif
36
GLDraw::GLTexture1D
1D texture data for use in OpenGL.
Definition:
GLTexture1D.h:12
GLDraw
Contains all definitions in the GLDraw package.
Definition:
AnyGeometry.h:14
GLDraw::GLTextureObject
A GL texture object class. Simplifies allocating and cleaning up texture objects. Usually you only ne...
Definition:
GLTextureObject.h:13
GLDraw::ColorGradient
Definition:
ColorGradient.h:9
Generated by
1.8.11