brushconstruct::BrushConstructor Class Reference

#include <BrushConstructor.h>

Inheritance diagram for brushconstruct::BrushConstructor:
Inheritance graph
[legend]

Public Member Functions

virtual void generate (Brush &brush, const AABB &bounds, std::size_t sides, const TextureProjection &projection, const std::string &shader)=0
virtual const std::string getName () const =0

Protected Member Functions

float maxExtent (const Vector3 &extents)

Detailed Description

Definition at line 12 of file BrushConstructor.h.


Member Function Documentation

virtual void brushconstruct::BrushConstructor::generate ( Brush brush,
const AABB &  bounds,
std::size_t  sides,
const TextureProjection &  projection,
const std::string shader 
) [pure virtual]
Parameters:
[out] brush The brush to create the planes for
[in] bounds The mins and maxs of the cube
[in] sides 
[in] projection The texture projection that is used (shift, scale and rotate values)
[in] shader The path of the texture relative to the base dir

Implemented in brushconstruct::Cone, brushconstruct::Cuboid, brushconstruct::Prism, brushconstruct::Rock, brushconstruct::Sphere, and brushconstruct::Terrain.

virtual const std::string brushconstruct::BrushConstructor::getName (  )  const [pure virtual]
float brushconstruct::BrushConstructor::maxExtent ( const Vector3 extents  )  [inline, protected]

Definition at line 15 of file BrushConstructor.h.


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

Generated by  doxygen 1.6.2