![]() |
CMSC23700 Common Code Library
Support code for CS23700 programming projects
|
wrapper class for OpenGL 1D textures More...
#include <cs237-texture.hxx>
Inherits cs237::__detail::texture_base.
Public Member Functions | |
texture1D (image1d *img) | |
create a 1D texture initialized to the given 2D image data. More... | |
texture1D (GLenum target, GLenum ifmt, GLenum wid, GLenum fmt, GLenum ty) | |
create a 1D texture and allocate uninitialized storage for it. More... | |
![]() | |
GLuint | Id () const |
GLenum | Target () const |
void | Bind () |
bind this texture as the current texture More... | |
void | Parameter (GLenum param, GLenum value) |
set texture parameter values More... | |
void | Parameter (GLenum param, GLint value) |
void | Parameter (GLenum param, color4f value) |
Additional Inherited Members | |
![]() | |
texture_base (GLenum target) | |
![]() | |
GLenum | _target |
wrapper class for OpenGL 1D textures
cs237::texture1D::texture1D | ( | image1d * | img | ) |
create a 1D texture initialized to the given 2D image data.
img | specifies the initial texture image data |
cs237::texture1D::texture1D | ( | GLenum | target, |
GLenum | ifmt, | ||
GLenum | wid, | ||
GLenum | fmt, | ||
GLenum | ty | ||
) |
create a 1D texture and allocate uninitialized storage for it.
target | specifies the target of the operation |
ifmt | specifies the internal texture format |
wid | specifies the texture width |
fmt | specifies the image format |
ty | specifies the type of the image elements |