class TexturedPlane : public CAVSharedObject

This class knows how to draw itself with OpenGL, and can use IRIX specific extensions

Inheritance:


Public

Data
CAVELOCK lock_
Lock the data for display
int firstBuild_[CAVE_MAX_WALLS]
Is this the first time we have built the wall
int dlIndex_[CAVE_MAX_WALLS]
int textureSerial_
The current texture serial number
int wallSerial_[CAVE_MAX_WALLS]
The last serial number used on this wall
int textureWidth_
The actual texture width
int textureHeight_
The actual texture height
int textureDepth_
The actual texture depth
int nextpowtwowidth_
The next power of two greater than the width
int nextpowtwoheight_
The next power of two greater than the height
unsigned char* tmpBuffer_
Someplace to store a frame temporarily
unsigned char* textureData_
The actual texture data
Methods
TexturedPlane()
Constructor builds the TexturedPlane with minimal information
TexturedPlane(int width, int height, int depth)
Constructor builds the TexturedPlane with the specified information
~TexturedPlane()
Destructor
void setTexture(int width, int height, int depth, unsigned char *data)
Set the texture parameters, including the current data
void setFormat(int format)
Set the format of the Data
void appInit()
Graphics initialization
void frame()
Processing once per frame
void draw()
Drawing once per eye
int GetWidth(void)
Get the texture width
int GetHeight(void)
Get the texture Height
int GetScaledWidth(void)
Get the next power of two greater than the width
int GetScaledHeight(void)
Get the next power of two greater than the height
inline int getWallIndex(void)
Get what wall we are supposed to draw on
void buildWall(int)
Build the texture for the wall
void rebuildWall(int)
update the texture

Inherited from CAVSharedObject:


Documentation

This class knows how to draw itself with OpenGL, and can use IRIX specific extensions
Methods

TexturedPlane()
Constructor builds the TexturedPlane with minimal information

TexturedPlane(int width, int height, int depth)
Constructor builds the TexturedPlane with the specified information

~TexturedPlane()
Destructor

void setTexture(int width, int height, int depth, unsigned char *data)
Set the texture parameters, including the current data

void setFormat(int format)
Set the format of the Data

void appInit()
Graphics initialization

void frame()
Processing once per frame

void draw()
Drawing once per eye

int GetWidth(void)
Get the texture width

int GetHeight(void)
Get the texture Height

int GetScaledWidth(void)
Get the next power of two greater than the width

int GetScaledHeight(void)
Get the next power of two greater than the height

inline int getWallIndex(void)
Get what wall we are supposed to draw on

void buildWall(int)
Build the texture for the wall

void rebuildWall(int)
update the texture

Data

CAVELOCK lock_
Lock the data for display

int firstBuild_[CAVE_MAX_WALLS]
Is this the first time we have built the wall

int dlIndex_[CAVE_MAX_WALLS]

int textureSerial_
The current texture serial number

int wallSerial_[CAVE_MAX_WALLS]
The last serial number used on this wall

int textureWidth_
The actual texture width

int textureHeight_
The actual texture height

int textureDepth_
The actual texture depth

int nextpowtwowidth_
The next power of two greater than the width

int nextpowtwoheight_
The next power of two greater than the height

unsigned char* tmpBuffer_
Someplace to store a frame temporarily

unsigned char* textureData_
The actual texture data


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de