ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Grim::MeshFace Class Reference

#include <model.h>

Collaboration diagram for Grim::MeshFace:

List of all members.

Public Member Functions

 MeshFace ()
 ~MeshFace ()
void stealData (MeshFace &other)
int loadBinary (Common::SeekableReadStream *data, Material *materials[])
int loadText (TextSplitter *ts, Material *materials[], int offset)
void draw (const Mesh *mesh) const
void changeMaterial (Material *material)
bool hasTexture () const
const Math::Vector3dgetNormal () const
void setNormal (const Math::Vector3d &normal)
const MaterialgetMaterial () const
int getNumVertices () const
int getVertex (int i) const
int getTextureVertex (int i) const
int getLight () const

Public Attributes

void * _userData

Private Attributes

int _type
int _geo
int _light
int _tex
float _extraLight
int _numVertices
int * _vertices
int * _texVertices
Math::Vector3d _normal

Detailed Description

Definition at line 92 of file model.h.

Constructor & Destructor Documentation

Grim::MeshFace::MeshFace (  ) 

Definition at line 299 of file model.cpp.

Grim::MeshFace::~MeshFace (  ) 

Definition at line 305 of file model.cpp.

Member Function Documentation

void Grim::MeshFace::changeMaterial ( Material material  ) 

Definition at line 375 of file model.cpp.

void Grim::MeshFace::draw ( const Mesh mesh  )  const

Definition at line 379 of file model.cpp.

int Grim::MeshFace::getLight (  )  const [inline]

Definition at line 110 of file model.h.

const Material* Grim::MeshFace::getMaterial (  )  const [inline]

Definition at line 106 of file model.h.

const Math::Vector3d& Grim::MeshFace::getNormal (  )  const [inline]

Definition at line 104 of file model.h.

int Grim::MeshFace::getNumVertices (  )  const [inline]

Definition at line 107 of file model.h.

int Grim::MeshFace::getTextureVertex ( int  i  )  const [inline]

Definition at line 109 of file model.h.

int Grim::MeshFace::getVertex ( int  i  )  const [inline]

Definition at line 108 of file model.h.

bool Grim::MeshFace::hasTexture (  )  const [inline]

Definition at line 102 of file model.h.

int Grim::MeshFace::loadBinary ( Common::SeekableReadStream data,
Material materials[] 

Definition at line 316 of file model.cpp.

int Grim::MeshFace::loadText ( TextSplitter ts,
Material materials[],
int  offset 

Definition at line 351 of file model.cpp.

void Grim::MeshFace::setNormal ( const Math::Vector3d normal  )  [inline]

Definition at line 105 of file model.h.

void Grim::MeshFace::stealData ( MeshFace other  ) 

Definition at line 310 of file model.cpp.

Member Data Documentation

float Grim::MeshFace::_extraLight [private]

Definition at line 115 of file model.h.

int Grim::MeshFace::_geo [private]

Definition at line 114 of file model.h.

int Grim::MeshFace::_light [private]

Definition at line 114 of file model.h.

Definition at line 113 of file model.h.

Definition at line 118 of file model.h.

Definition at line 116 of file model.h.

int Grim::MeshFace::_tex [private]

Definition at line 114 of file model.h.

Definition at line 117 of file model.h.

int Grim::MeshFace::_type [private]

Definition at line 114 of file model.h.

Definition at line 121 of file model.h.

int* Grim::MeshFace::_vertices [private]

Definition at line 117 of file model.h.

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

Generated on Sat Sep 12 2020 05:04:40 for ResidualVM by doxygen 1.7.1
curved edge   curved edge