geMesh

From GriffinEngine
Jump to: navigation, search

Usage

Used for storing 3D objects internally. Is only compatible with triangle-based meshes. Including quads in your object file will simply result in the renderer only drawing the first 3 vertexes of your quad.

Code Example: Importing a mesh and adding it to the resource manager

geMeshImporter* mi = geMeshImporter::Instance();
mesh* m = mi->importMesh("test.obj");
geResourceManager::Instance().add(m);


Inheritance

Base classes


Reference

Fields

  •  vector<float3> verts;
  •  vector<geMeshFace*> faces;

Constructors

  •  geMesh();
  •  geMesh(const geMesh &rhs);

Accessors

  •  virtual int getID(){ return 0x0A00; }
  •  virtual string getName() const;