Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

Model Class Reference

#include <model.h>

List of all members.

Public Member Functions

 Model (const GLfloat data[], const GLuint &size)
 Model (const GLfloat data[], const GLuint &size, const GLfloat rgb[], const GLfloat tcoord[], const GLuint tname[])
 Model (GLuint dlOpaque, GLuint dlAlpha, std::map< string, GLuint > mapTex)
void Display (const OC_FLOAT &rcfW=0, const OC_FLOAT &rcfH=0, const OC_FLOAT &rcfY=0) const
void Display2 (const OC_FLOAT &rcfW, const OC_FLOAT &rcfH, const OC_BYTE tabY[]) const
void DisplayPoly (const OC_FLOAT &rcfW, const OC_FLOAT &rcfH, const OC_BYTE tabY[]) const
void DisplayList () const
void DisplayList (const OC_FLOAT &rcfW, const OC_FLOAT &rcfL, const OC_BYTE tabY[]) const

Private Attributes

const GLfloat * ftabData
const GLfloat * ftabRGB
const GLfloat * ftabTexCoord
const GLuint * uitabTexName
GLuint uiTabSize
GLuint uiOpaqueList
GLuint uiAlphaList
std::map< string, GLuint > mapTexture


Detailed Description

This is an internal 3d model representation used by OpenCity.

Definition at line 31 of file model.h.


Member Function Documentation

void Model::Display const OC_FLOAT &  rcfW = 0,
const OC_FLOAT &  rcfH = 0,
const OC_FLOAT &  rcfY = 0
const
 

Issue the necessary gl commands to display the model. Be careful, you should call this method in the glBegin( GL_QUADS ) / glEnd() block;

Parameters:
rcfW = GL x
rcfH = GL z
rcfY = GL y

Definition at line 113 of file model.cpp.

void Model::Display2 const OC_FLOAT &  rcfW,
const OC_FLOAT &  rcfH,
const OC_BYTE  tabY[]
const
 

Same as modelDisplay but automatically add Y coordinates

See also:
modelDisplay()

Definition at line 192 of file model.cpp.

Referenced by GraphicManager::DisplayStructure().

void Model::DisplayList const OC_FLOAT &  rcfW,
const OC_FLOAT &  rcfL,
const OC_BYTE  tabY[]
const
 

Call the internal OpenGL display list after modifying the MODELVIEW matrix according to the given parameters

Parameters:
rcfW = GL x
rcfL = GL z
tabY = GL y

Definition at line 344 of file model.cpp.

void Model::DisplayList  )  const
 

Simply call the internal OpenGL display list

Definition at line 333 of file model.cpp.

Referenced by GraphicManager::Display(), GraphicManager::DisplayGC(), and GraphicManager::DisplayStructure().


The documentation for this class was generated from the following files:
Generated on Sat Nov 11 10:21:11 2006 for OpenCity by  doxygen 1.4.2