#include <osg/Export>#include <osg/Object>#include <osg/StateAttributeCallback>#include <osg/GL>#include <typeinfo>#include <utility>#include <vector>Classes | |
| class | osg::StateAttribute |
| Base class for state attributes. More... | |
| struct | osg::StateAttribute::ModeUsage |
Namespaces | |
| namespace | osg |
| The core osg library provides the basic scene graph classes such as Nodes, State and Drawables, and maths and general helper classes. | |
Defines | |
| #define | OSG_STATEATTRIBUTE 1 |
| #define | GL_COLOR_SUM 0x8458 |
| #define | META_StateAttribute(library, name, type) |
| META_StateAttribute macro define the standard clone, isSameKindAs, className and getType methods. | |
| #define | COMPARE_StateAttribute_Types(TYPE, rhs_attribute) |
| COMPARE_StateAttribute_Types macro is a helper for implementing the StateAtribute::compare(. | |
| #define | COMPARE_StateAttribute_Parameter(parameter) |
| COMPARE_StateAttribute_Parameter macro is a helper for implementing the StatateAtribute::compare(. | |
| #define COMPARE_StateAttribute_Parameter | ( | parameter | ) |
Value:
if (parameter<rhs.parameter) return -1; \ if (rhs.parameter<parameter) return 1;
.) method. Macro assumes that variable rhs has been correctly defined by preceding code macro.
Referenced by osgFX::Validator::compare(), osg::Viewport::compare(), osg::VertexProgram::compare(), osg::TexMat::compare(), osg::TexGen::compare(), osg::TexEnvFilter::compare(), osg::TexEnvCombine::compare(), osg::TexEnv::compare(), osg::Stencil::compare(), osg::ShadeModel::compare(), osg::Scissor::compare(), osg::PolygonOffset::compare(), osg::PolygonMode::compare(), osg::Point::compare(), osg::Multisample::compare(), osg::Material::compare(), osg::LogicOp::compare(), osg::LineWidth::compare(), osg::LineStipple::compare(), osg::LightModel::compare(), osg::Light::compare(), osg::Hint::compare(), osg::FrontFace::compare(), osg::FragmentProgram::compare(), osg::Fog::compare(), osg::Depth::compare(), osg::CullFace::compare(), osg::ColorMatrix::compare(), osg::ColorMask::compare(), osg::ClipPlane::compare(), osg::ClampColor::compare(), osg::BlendFunc::compare(), osg::BlendEquation::compare(), osg::BlendColor::compare(), and osg::AlphaFunc::compare().
| #define COMPARE_StateAttribute_Types | ( | TYPE, | |||
| rhs_attribute | ) |
Value:
if (this==&rhs_attribute) return 0;\ const std::type_info* type_lhs = &typeid(*this);\ const std::type_info* type_rhs = &typeid(rhs_attribute);\ if (type_lhs->before(*type_rhs)) return -1;\ if (*type_lhs != *type_rhs) return 1;\ const TYPE& rhs = static_cast<const TYPE&>(rhs_attribute);
.) method.
Referenced by osgFX::Validator::compare(), osg::Viewport::compare(), osg::VertexProgram::compare(), osg::TexMat::compare(), osg::TexGen::compare(), osg::TexEnvFilter::compare(), osg::TexEnvCombine::compare(), osg::TexEnv::compare(), osg::Stencil::compare(), osg::ShadeModel::compare(), osg::Scissor::compare(), osg::PolygonOffset::compare(), osg::PolygonMode::compare(), osg::Point::compare(), osg::Multisample::compare(), osg::Material::compare(), osg::LogicOp::compare(), osg::LineWidth::compare(), osg::LineStipple::compare(), osg::LightModel::compare(), osg::Light::compare(), osg::Hint::compare(), osg::FrontFace::compare(), osg::FragmentProgram::compare(), osg::Fog::compare(), osg::Depth::compare(), osg::CullFace::compare(), osg::ColorMatrix::compare(), osg::ColorMask::compare(), osg::ClipPlane::compare(), osg::ClampColor::compare(), osg::BlendFunc::compare(), osg::BlendEquation::compare(), osg::BlendColor::compare(), and osg::AlphaFunc::compare().
| #define GL_COLOR_SUM 0x8458 |
| #define META_StateAttribute | ( | library, | |||
| name, | |||||
| type | ) |
Value:
virtual osg::Object* cloneType() const { return new name(); } \ virtual osg::Object* clone(const osg::CopyOp& copyop) const { return new name (*this,copyop); } \ virtual bool isSameKindAs(const osg::Object* obj) const { return dynamic_cast<const name *>(obj)!=NULL; } \ virtual const char* libraryName() const { return #library; } \ virtual const char* className() const { return #name; } \ virtual Type getType() const { return type; }
Use when subclassing from Object to make it more convenient to define the standard pure virtual methods which are required for all Object subclasses.
| #define OSG_STATEATTRIBUTE 1 |
| Generated at Sat May 14 08:21:07 2011 for the OpenSceneGraph by doxygen 1.5.9. |