StateAttribute File Reference

#include <osg/Export>
#include <osg/Object>
#include <osg/StateAttributeCallback>
#include <osg/GL>
#include <typeinfo>
#include <utility>
#include <vector>

Namespaces

namespace  osg

Classes

class  osg::StateAttribute
struct  osg::StateAttribute::ModeUsage

Defines

#define OSG_STATEATTRIBUTE   1
#define GL_COLOR_SUM   0x8458
#define META_StateAttribute(library, name, type)
#define COMPARE_StateAttribute_Types(TYPE, rhs_attribute)
#define COMPARE_StateAttribute_Parameter(parameter)

Define Documentation

#define COMPARE_StateAttribute_Parameter ( parameter   ) 

#define COMPARE_StateAttribute_Types ( TYPE,
rhs_attribute   ) 

#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; }
META_StateAttribute macro define the standard clone, isSameKindAs, className and getType methods. 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 on Sat Mar 20 12:33:55 2010 for openscenegraph by  doxygen 1.5.6