Carna  Version 3.0.1
Static Public Member Functions | List of all members
Carna::base::MeshFactory< VertexType > Class Template Reference

Creates simple predefined ManagedMesh instances. More...

#include <MeshFactory.h>

Static Public Member Functions

static ManagedMesh< VertexType, uint8_t > & createBox (float width, float height, float depth)
 Creates box with width, height and depth. The box is centered in \(\left(0, 0, 0\right)^\mathrm T\).
 
static ManagedMesh< VertexType, uint8_t > & createBox (const math::Vector3f &size)
 
static ManagedMesh< VertexType, uint8_t > & createPoint ()
 Creates mesh that consists of a single point.
 

Detailed Description

template<typename VertexType>
class Carna::base::MeshFactory< VertexType >

Creates simple predefined ManagedMesh instances.

Parameters
VertexTypespecifies the vertex type that is to be used to build the vertex buffers.
Author
Leonid Kostrykin
Date
22.2.15 - 14.3.15

Definition at line 49 of file MeshFactory.h.

Member Function Documentation

template<typename VertexType >
ManagedMesh< VertexType, uint8_t > & Carna::base::MeshFactory< VertexType >::createBox ( const math::Vector3f size)
static

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 88 of file MeshFactory.h.


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