iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nrt::graphics::Brush Class Reference

#include <nrt/Graphics/Brush.H>

Base class for a graphics brush (to draw facet fills of graphics objects)

Definition at line 52 of file Brush.H.

Public Member Functions

 Brush (BasicMaterial m=BasicMaterial::PlasticWhite)
 Construct from a basic material from our basic material library (see nrt::graphics::Material)
 
 Brush (Material const &m)
 Construct from any material.
 
 Brush (std::string const &texturename_)
 Construct from a texture name. More...
 
template<class Archive >
void serialize (Archive &ar)
 Serialization.
 

Public Attributes

Material material
 Material for our facets, is overriden by texture if present.
 
std::string texturename
 Textures for our facets, overrides material.
 

Constructor & Destructor Documentation

nrt::graphics::Brush::Brush ( std::string const &  texturename_)

Construct from a texture name.

There should be at least one texture already defined under that name (see nrt::graphics::Textures message to send texture definitions to the ShapeRenderer). Some shapes may use more than one texture, in which case it will be expected that they are all loaded under that same name.


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