My Project
Public Member Functions | Public Attributes | List of all members
RayTexture Class Reference

#include <rayScene.h>

Public Member Functions

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

Public Attributes

int index
char filename [STRING_BUFFER_SIZE]
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

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