|
void | reset () |
| Reset mStateSets, forcing a setDefaults() on the next frame. Can be used to change the defaults if needed. More...
|
|
MWRender::StateUpdater::StateUpdater |
( |
| ) |
|
|
inline |
virtual void MWRender::StateUpdater::apply |
( |
osg::StateSet * |
stateset, |
|
|
osg::NodeVisitor * |
nv |
|
) |
| |
|
inlinevirtual |
Apply state - to override in derived classes
- Note
- Due to the double buffering approach you have to apply all state even if it has not changed since the last frame.
Reimplemented from SceneUtil::StateSetUpdater.
bool MWRender::StateUpdater::getWireframe |
( |
| ) |
const |
|
inline |
void MWRender::StateUpdater::setAmbientColor |
( |
const osg::Vec4f & |
col | ) |
|
|
inline |
virtual void MWRender::StateUpdater::setDefaults |
( |
osg::StateSet * |
stateset | ) |
|
|
inlinevirtual |
Set default state - optionally override in derived classes
- May be used e.g. to allocate StateAttributes.
Reimplemented from SceneUtil::StateSetUpdater.
void MWRender::StateUpdater::setFogColor |
( |
const osg::Vec4f & |
col | ) |
|
|
inline |
void MWRender::StateUpdater::setFogEnd |
( |
float |
end | ) |
|
|
inline |
void MWRender::StateUpdater::setFogStart |
( |
float |
start | ) |
|
|
inline |
void MWRender::StateUpdater::setWireframe |
( |
bool |
wireframe | ) |
|
|
inline |
osg::Vec4f MWRender::StateUpdater::mAmbientColor |
|
private |
osg::Vec4f MWRender::StateUpdater::mFogColor |
|
private |
float MWRender::StateUpdater::mFogEnd |
|
private |
float MWRender::StateUpdater::mFogStart |
|
private |
bool MWRender::StateUpdater::mWireframe |
|
private |
The documentation for this class was generated from the following file: