OpenSceneGraph/doc/doc++/osg/META_Object.html

24 lines
1.0 KiB
HTML
Raw Normal View History

o Added osgUtil::StateOptimizeVisitor which traversing the scene graph and builds up a map of all StateAttributes and StateSets and then removes the duplicates. This promotes state sharing throughout the scene graph which inturn can significantly improve performance thanks to reduced state changing. Particularily effective on datasets where a great deal of duplicated state exists. o Added pure virtual compare(const osg::StateAttribute&) method to osg::StateAttribute, and implemented it in all the subclasses from StateAttribute. Added <,== & != operator on StateAttribute and Matrix to support new StateOptimizeVisitor. o Added META_Object, META_Node and META_StateAttribute macros to Object, Node and StateAttribute respectively which define the standard pure virtual methods such as clone, className & isSameKindAs. Changed all the appropriate header files to use these macro's rather define them in each header, these cleans up the headers considerably. o Corrected the implementation of osg::Light::getType so it correctly uses a unique type for each of the OpenGL lights (GL_LIGHT0.. GL_LIGHT7 relates to osg::StateAttriburte::LIGHT_0..LIGHT_7. o Changed the definition of osg::StateStateAttribute::Type to is now a unsigned int rather than an enum, and have changed the name of the previous Type enum list to be Types. This makes it more consistent with the difination of values found in StateAttribute and also easier to extend with having to cast to an enum. o From Pail Fredrikson, updated Maitrx.new implemention which uses the same matrix orientation as the original Matrix implemention.
2001-09-20 07:46:48 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>#define osg::META_Object</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
</HEAD>
<BODY BGCOLOR="#ffffff">
2002-06-05 20:35:59 +08:00
<H2>#define <A HREF="#DOC.DOCU">osg::META_Object</A></H2><H2>(<!1><A HREF="TexGen.html#DOC.2.107.10.2">T</A>)</H2><BLOCKQUOTE>META_Object macro define the standard clone, isSameKindAs and className methods.</BLOCKQUOTE>
o Added osgUtil::StateOptimizeVisitor which traversing the scene graph and builds up a map of all StateAttributes and StateSets and then removes the duplicates. This promotes state sharing throughout the scene graph which inturn can significantly improve performance thanks to reduced state changing. Particularily effective on datasets where a great deal of duplicated state exists. o Added pure virtual compare(const osg::StateAttribute&) method to osg::StateAttribute, and implemented it in all the subclasses from StateAttribute. Added <,== & != operator on StateAttribute and Matrix to support new StateOptimizeVisitor. o Added META_Object, META_Node and META_StateAttribute macros to Object, Node and StateAttribute respectively which define the standard pure virtual methods such as clone, className & isSameKindAs. Changed all the appropriate header files to use these macro's rather define them in each header, these cleans up the headers considerably. o Corrected the implementation of osg::Light::getType so it correctly uses a unique type for each of the OpenGL lights (GL_LIGHT0.. GL_LIGHT7 relates to osg::StateAttriburte::LIGHT_0..LIGHT_7. o Changed the definition of osg::StateStateAttribute::Type to is now a unsigned int rather than an enum, and have changed the name of the previous Type enum list to be Types. This makes it more consistent with the difination of values found in StateAttribute and also easier to extend with having to cast to an enum. o From Pail Fredrikson, updated Maitrx.new implemention which uses the same matrix orientation as the original Matrix implemention.
2001-09-20 07:46:48 +08:00
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>META_Object macro define the standard clone, isSameKindAs and className methods.
Use when subclassing from Object to make it more convinient to define
the standard pure virtual clone, isSameKindAs and className methods
which are required for all Object subclasses.</BLOCKQUOTE>
<DL><DT><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>