Main Page | Class Hierarchy | Class List | Class Members

RayTexture Class Reference

List of all members.

Public Member Functions

int read (FILE *fp)
void write (FILE *fp=stdout)
void setUpOpenGL (void)

Public Attributes

int index
char filename [STRING_BUFFER_SIZE]
Image32img
GLuint openGLHandle

Detailed Description

This class stores information about a texture used for texture mapping shapes


Member Function Documentation

int RayTexture::read FILE *  fp  ) 
 

This method reads in the texture file name from the .ray file and reads the texture from the specified file.

void RayTexture::setUpOpenGL void   ) 
 

This method sets up the OpenGL texture

void RayTexture::write FILE *  fp = stdout  ) 
 

This method writes out the texture file name to a .ray file. If no file is specified, the file name is written out to stdout.


Member Data Documentation

char RayTexture::filename[STRING_BUFFER_SIZE]
 

The name of the texture file

Image32* RayTexture::img
 

The image used as a texture

int RayTexture::index
 

The index of the texture within the scene

GLuint RayTexture::openGLHandle
 

The texture handle for OpenGL rendering


Generated on Wed Feb 22 15:44:23 2006 for Assignment 2 by  doxygen 1.4.1