casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
casa::GLPCTexturedImage Class Reference

#include <GLPCTexture.h>

Inheritance diagram for casa::GLPCTexturedImage:
casa::GLPCDisplayListEntry casa::GLPCDisplayListElement

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
GLPCTextureParamsparams () 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_
GLPCTextureParamsparams_
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 
)

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::envmode ( GLenum  mode)
GLenum casa::GLPCTexturedImage::envmode ( ) const [inline]

Definition at line 114 of file GLPCTexture.h.

References casa::GLPCTextureParams::envmode_, and params_.

Definition at line 115 of file GLPCTexture.h.

References params_.

void casa::GLPCTexturedImage::storeImage ( GLsizei  dWidth,
GLsizei  dHeight,
const GLushort *  pixels 
) [private]

Member Data Documentation

Definition at line 125 of file GLPCTexture.h.

Definition at line 125 of file GLPCTexture.h.

Definition at line 127 of file GLPCTexture.h.

Definition at line 120 of file GLPCTexture.h.

Definition at line 120 of file GLPCTexture.h.

Definition at line 121 of file GLPCTexture.h.

Definition at line 126 of file GLPCTexture.h.

Referenced by envmode(), and params().

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.

Definition at line 124 of file GLPCTexture.h.

GLfloat casa::GLPCTexturedImage::y_ [private]

Definition at line 123 of file GLPCTexture.h.

Definition at line 124 of file GLPCTexture.h.

GLfloat casa::GLPCTexturedImage::z_ [private]

Definition at line 123 of file GLPCTexture.h.


The documentation for this class was generated from the following file: