Mondschein Engine  0.3.0
Public Member Functions | List of all members
mondschein::scene::Mesh Class Reference

This class is the mesh node interface. More...

#include <mesh.h>

Inheritance diagram for mondschein::scene::Mesh:
mondschein::scene::Scenenode

Public Member Functions

virtual void set_mesh_attribs (const mesh_attribs_t &_m)
 Set the mesh properties. More...
 
virtual mesh_attribs_t get_mesh_attribs () const
 Get the mesh properties. More...
 
- Public Member Functions inherited from mondschein::scene::Scenenode
virtual void set_renderables (const std::map< std::string, renderer::Renderable_c > &_r)
 Set the renderable objects. More...
 
virtual std::map< std::string,
renderer::Renderable_c > 
get_renderables () const
 Get the renderable objects. More...
 
virtual void set_id (const std::string &_id)
 Set the scenenode id. More...
 
virtual std::string get_id () const
 Get the scenenode id. More...
 

Detailed Description

This class is the mesh node interface.

The Mesh interface describes an arbitrary mesh object that can be rendered by the Mondschein Engine.
A mesh object is a 3D structure made of vertices, normals, texture coordinates, and surfaces. A mesh can represent all geometrical objects from a simple triangle to a complex and sophisticated form, e.g. a human face.
The interface class is a derivation of the Scenegraph class and therefore is a scenegraph node.
Because the internal structure of a mesh varies from renderer to renderer every renderer implements its own derivation class of the Mesh interface.

Definition at line 42 of file mesh.h.

Member Function Documentation

mesh_attribs_t Mesh::get_mesh_attribs ( ) const
virtual

Get the mesh properties.

Returns
the mesh properties of *this

Definition at line 59 of file mesh.cpp.

void Mesh::set_mesh_attribs ( const mesh_attribs_t _m)
virtual

Set the mesh properties.

Parameters
_mmesh properties

Definition at line 53 of file mesh.cpp.


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