Added first cut at new AutoTransform node which will be used for generating
Transform's during the cull traversal such as for earth/sky etc.
This commit is contained in:
@@ -97,6 +97,10 @@ SOURCE=..\..\src\osg\AlphaFunc.cpp
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=..\..\src\osg\AutoTransform.cpp
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\src\osg\Billboard.cpp
|
SOURCE=..\..\src\osg\Billboard.cpp
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
@@ -325,6 +329,10 @@ SOURCE=..\..\Include\Osg\AlphaFunc
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=..\..\Include\Osg\AutoTransform
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\Include\Osg\Billboard
|
SOURCE=..\..\Include\Osg\Billboard
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ class Billboard;
|
|||||||
class LightSource;
|
class LightSource;
|
||||||
class Group;
|
class Group;
|
||||||
class Transform;
|
class Transform;
|
||||||
|
class AutoTransform;
|
||||||
class LOD;
|
class LOD;
|
||||||
class Sequence;
|
|
||||||
class Switch;
|
class Switch;
|
||||||
class Impostor;
|
class Impostor;
|
||||||
class EarthSky;
|
class EarthSky;
|
||||||
@@ -141,8 +141,8 @@ class SG_EXPORT NodeVisitor : public Referenced
|
|||||||
|
|
||||||
virtual void apply(Group& node) { apply((Node&)node); }
|
virtual void apply(Group& node) { apply((Node&)node); }
|
||||||
virtual void apply(Transform& node) { apply((Group&)node); }
|
virtual void apply(Transform& node) { apply((Group&)node); }
|
||||||
|
virtual void apply(AutoTransform& node) { apply((Group&)node); }
|
||||||
virtual void apply(Switch& node) { apply((Group&)node); }
|
virtual void apply(Switch& node) { apply((Group&)node); }
|
||||||
virtual void apply(Sequence& node) { apply((Group&)node); }
|
|
||||||
virtual void apply(LOD& node) { apply((Group&)node); }
|
virtual void apply(LOD& node) { apply((Group&)node); }
|
||||||
virtual void apply(Impostor& node) { apply((LOD&)node); }
|
virtual void apply(Impostor& node) { apply((LOD&)node); }
|
||||||
virtual void apply(EarthSky& node) { apply((Group&)node); }
|
virtual void apply(EarthSky& node) { apply((Group&)node); }
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ include $(OSGHOME)/Make/makedefs
|
|||||||
|
|
||||||
C++FILES = \
|
C++FILES = \
|
||||||
AlphaFunc.cpp\
|
AlphaFunc.cpp\
|
||||||
|
AutoTransform.cpp\
|
||||||
Billboard.cpp\
|
Billboard.cpp\
|
||||||
BoundingBox.cpp\
|
BoundingBox.cpp\
|
||||||
BoundingSphere.cpp\
|
BoundingSphere.cpp\
|
||||||
@@ -67,6 +68,7 @@ TARGET_LIB_FILES = lib$(TARGET_BASENAME).$(SO_EXT)
|
|||||||
TARGET_INCLUDE_FILES = \
|
TARGET_INCLUDE_FILES = \
|
||||||
osg/Notify\
|
osg/Notify\
|
||||||
osg/AlphaFunc\
|
osg/AlphaFunc\
|
||||||
|
osg/AutoTransform\
|
||||||
osg/Billboard\
|
osg/Billboard\
|
||||||
osg/BoundingBox\
|
osg/BoundingBox\
|
||||||
osg/BoundingSphere\
|
osg/BoundingSphere\
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ class PrintVisitor : public NodeVisitor
|
|||||||
virtual void apply(Group& node) { apply((Node&)node); }
|
virtual void apply(Group& node) { apply((Node&)node); }
|
||||||
virtual void apply(Transform& node) { apply((Group&)node); }
|
virtual void apply(Transform& node) { apply((Group&)node); }
|
||||||
virtual void apply(Switch& node) { apply((Group&)node); }
|
virtual void apply(Switch& node) { apply((Group&)node); }
|
||||||
virtual void apply(Sequence& node) { apply((Group&)node); }
|
|
||||||
virtual void apply(LOD& node) { apply((Group&)node); }
|
virtual void apply(LOD& node) { apply((Group&)node); }
|
||||||
virtual void apply(Impostor& node) { apply((LOD&)node); }
|
virtual void apply(Impostor& node) { apply((LOD&)node); }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user