#include <sglStatelet.hpp>
Inheritance diagram for sglShadeModel::
Public Types | |
enum | ShadeModelEnum { eFLAT = GL_FLAT, eSMOOTH = GL_SMOOTH } |
Public Methods | |
sglShadeModel (ShadeModelEnum model=eSMOOTH) | |
virtual | ~sglShadeModel () |
void | setShadeModel (ShadeModelEnum model) |
ShadeModelEnum | getShadeModel () const |
void | apply (sglCurrState *curr_state) const |
virtual void | printInfo (ostream &ostrm, const char *indent_string) const |
Protected Attributes | |
ShadeModelEnum | m_model |
Example:
sglShadeModel *shade_model = new sglShadeModel; // default: smooth shade_model->setShadeModel(sglShadeModel::eFLAT); // flat shading
Definition at line 2095 of file sglStatelet.hpp.
|
The shade model type tokens.
Definition at line 2099 of file sglStatelet.hpp. |
|
Constructor (also the default constructor)
Definition at line 2113 of file sglStatelet.hpp. |
|
virtual destructor.
Definition at line 2117 of file sglStatelet.hpp. |
|
Set the shading model.
Definition at line 2123 of file sglStatelet.hpp. |
|
Query the current shading model.
Definition at line 2129 of file sglStatelet.hpp. |
|
Apply this state change to the current rendering state.
Reimplemented from sglStatelet. |
|
Output the state of this node to the specified ostream.
Reimplemented from sglStatelet. |