casa::GLPCTexturedImage Class Reference
#include <GLPCTexture.h>
List of all members.
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_ |
Detailed Description
Prerequisite
Synopsis
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.
Constructor & Destructor Documentation
casa::GLPCTexturedImage::GLPCTexturedImage |
( |
GLsizei |
width, |
|
|
GLsizei |
height, |
|
|
const GLushort * |
pixels, |
|
|
const GLPCTextureParams * |
= NULL | |
|
) |
| | |
casa::GLPCTexturedImage::~GLPCTexturedImage |
( |
|
) |
|
Member Function Documentation
void casa::GLPCTexturedImage::createTextures |
( |
GLsizei |
dWidth, |
|
|
GLsizei |
dHeight | |
|
) |
| | [private] |
void casa::GLPCTexturedImage::draw |
( |
GLfloat |
x, |
|
|
GLfloat |
y, |
|
|
GLfloat |
z = 0.0 , |
|
|
GLfloat |
xscale = 1.0 , |
|
|
GLfloat |
yscale = 1.0 | |
|
) |
| | |
Thrown Exceptions
image and save values for later.
void casa::GLPCTexturedImage::draw |
( |
|
) |
|
GLenum casa::GLPCTexturedImage::envmode |
( |
|
) |
const [inline] |
void casa::GLPCTexturedImage::envmode |
( |
GLenum |
mode |
) |
|
void casa::GLPCTexturedImage::storeImage |
( |
GLsizei |
dWidth, |
|
|
GLsizei |
dHeight, |
|
|
const GLushort * |
pixels | |
|
) |
| | [private] |
Member Data Documentation
The documentation for this class was generated from the following file: