material Class Reference

#include <model.hpp>

Collaboration diagram for material:

Collaboration graph
[legend]

List of all members.


Detailed Description

A material is a named material.

Definition at line 55 of file model.hpp.


Public Member Functions

void bind (gsgl::flags_t render_flags=0)
platform::colorget_ambient ()
platform::colorget_diffuse ()
bool & get_flat ()
gsgl::stringget_name ()
platform::shader_baseget_shader ()
floatget_shininess ()
platform::colorget_specular ()
platform::textureget_texture ()
bool is_opaque ()
 material (const gsgl::string &material_file, const gsgl::string &material_name)
 ~material ()

Static Public Member Functions

static gsgl::data_objectcreate_global_material_cache ()
 Provided only so that it can be added to the global metacache in the right order.

Private Attributes

material_implimpl

Constructor & Destructor Documentation

material ( const gsgl::string material_file,
const gsgl::string material_name 
)

~material (  ) 

Definition at line 250 of file model.cpp.


Member Function Documentation

void bind ( gsgl::flags_t  render_flags = 0  ) 

gsgl::data_object * create_global_material_cache (  )  [static]

Provided only so that it can be added to the global metacache in the right order.

Definition at line 307 of file model.cpp.

Referenced by application::application().

color & get_ambient (  ) 

Definition at line 256 of file model.cpp.

References material_impl::ambient, assert, and material::impl.

color & get_diffuse (  ) 

Definition at line 257 of file model.cpp.

References assert, material_impl::diffuse, and material::impl.

bool & get_flat (  ) 

Definition at line 260 of file model.cpp.

References assert, material_impl::flat, and material::impl.

string & get_name (  ) 

Definition at line 255 of file model.cpp.

References assert, material::impl, and material_impl::name.

platform::shader_base* get_shader (  ) 

float & get_shininess (  ) 

Definition at line 259 of file model.cpp.

References assert, material::impl, and material_impl::shininess.

color & get_specular (  ) 

Definition at line 258 of file model.cpp.

References assert, material::impl, and material_impl::specular.

texture * get_texture (  ) 

Definition at line 261 of file model.cpp.

References assert, material::impl, and material_impl::tex.

bool is_opaque (  ) 


Member Data Documentation

material_impl* impl [private]


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

Generated on Sat Mar 1 13:50:07 2008 for Periapsis Project by  doxygen 1.5.5