casa
$Rev:20696$
|
#include <GLPCTexture.h>
Public Member Functions | |
GLPCTexturedImage (GLsizei width, GLsizei height, const GLushort *pixels, const GLPCTextureParams *=NULL) | |
~GLPCTexturedImage () | |
void | draw () |
void | draw (GLfloat x, GLfloat y, GLfloat z=0.0, GLfloat xscale=1.0, GLfloat yscale=1.0) |
void | envmode (GLenum mode) |
GLenum | envmode () const |
GLPCTextureParams * | params () const |
Private Member Functions | |
void | createTextures (GLsizei dWidth, GLsizei dHeight) |
void | storeImage (GLsizei dWidth, GLsizei dHeight, const GLushort *pixels) |
Private Attributes | |
int | ntx_ |
int | nty_ |
int | numTextures_ |
GLPCTextureObject ** | textures_ |
GLfloat | x_ |
GLfloat | y_ |
GLfloat | z_ |
GLfloat | xscale_ |
GLfloat | yscale_ |
GLsizei | dWidth_ |
GLsizei | dHeight_ |
GLPCTextureParams * | params_ |
GLint | maxTextureSize_ |
GLPCTexturedImage is used to convert an image to texture objects for display. The pixels array contains pixels stored as RGB triples. This class is typically only used by GLPixelCanvas If the image is larger than the maximum texture size, it will be broken into pieces that fit.
Definition at line 102 of file GLPCTexture.h.
casa::GLPCTexturedImage::GLPCTexturedImage | ( | GLsizei | width, |
GLsizei | height, | ||
const GLushort * | pixels, | ||
const GLPCTextureParams * | = NULL |
||
) |
void casa::GLPCTexturedImage::createTextures | ( | GLsizei | dWidth, |
GLsizei | dHeight | ||
) | [private] |
void casa::GLPCTexturedImage::draw | ( | ) |
void casa::GLPCTexturedImage::draw | ( | GLfloat | x, |
GLfloat | y, | ||
GLfloat | z = 0.0 , |
||
GLfloat | xscale = 1.0 , |
||
GLfloat | yscale = 1.0 |
||
) |
image and save values for later.
void casa::GLPCTexturedImage::envmode | ( | GLenum | mode | ) |
GLenum casa::GLPCTexturedImage::envmode | ( | ) | const [inline] |
Definition at line 114 of file GLPCTexture.h.
References casa::GLPCTextureParams::envmode_, and params_.
GLPCTextureParams* casa::GLPCTexturedImage::params | ( | ) | const [inline] |
Definition at line 115 of file GLPCTexture.h.
References params_.
void casa::GLPCTexturedImage::storeImage | ( | GLsizei | dWidth, |
GLsizei | dHeight, | ||
const GLushort * | pixels | ||
) | [private] |
GLsizei casa::GLPCTexturedImage::dHeight_ [private] |
Definition at line 125 of file GLPCTexture.h.
GLsizei casa::GLPCTexturedImage::dWidth_ [private] |
Definition at line 125 of file GLPCTexture.h.
GLint casa::GLPCTexturedImage::maxTextureSize_ [private] |
Definition at line 127 of file GLPCTexture.h.
int casa::GLPCTexturedImage::ntx_ [private] |
Definition at line 120 of file GLPCTexture.h.
int casa::GLPCTexturedImage::nty_ [private] |
Definition at line 120 of file GLPCTexture.h.
int casa::GLPCTexturedImage::numTextures_ [private] |
Definition at line 121 of file GLPCTexture.h.
Definition at line 126 of file GLPCTexture.h.
GLPCTextureObject** casa::GLPCTexturedImage::textures_ [private] |
Definition at line 122 of file GLPCTexture.h.
GLfloat casa::GLPCTexturedImage::x_ [private] |
Definition at line 123 of file GLPCTexture.h.
GLfloat casa::GLPCTexturedImage::xscale_ [private] |
Definition at line 124 of file GLPCTexture.h.
GLfloat casa::GLPCTexturedImage::y_ [private] |
Definition at line 123 of file GLPCTexture.h.
GLfloat casa::GLPCTexturedImage::yscale_ [private] |
Definition at line 124 of file GLPCTexture.h.
GLfloat casa::GLPCTexturedImage::z_ [private] |
Definition at line 123 of file GLPCTexture.h.