Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for util ShaderCompilerSettings to Visitor and ConstVisitor #971

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions include/vsg/core/ConstVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ namespace vsg

// forward declare util classes
class AnimationPath;
class ShaderCompileSettings;

// forward declare viewer classes
class Camera;
Expand Down Expand Up @@ -382,6 +383,7 @@ namespace vsg

// utils
virtual void apply(const AnimationPath&);
virtual void apply(const ShaderCompileSettings&);

// viewer
virtual void apply(const Camera&);
Expand Down
2 changes: 2 additions & 0 deletions include/vsg/core/Visitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ namespace vsg

// forward declare util classes
class AnimationPath;
class ShaderCompileSettings;

// forward declare viewer classes
class Camera;
Expand Down Expand Up @@ -382,6 +383,7 @@ namespace vsg

// utils
virtual void apply(AnimationPath&);
virtual void apply(ShaderCompileSettings&);

// viewer
virtual void apply(Camera&);
Expand Down
4 changes: 4 additions & 0 deletions src/vsg/core/ConstVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,10 @@ void ConstVisitor::apply(const AnimationPath& animationPath)
{
apply(static_cast<const Object&>(animationPath));
}
void ConstVisitor::apply(const ShaderCompileSettings& shaderCompileSettings)
{
apply(static_cast<const Object&>(shaderCompileSettings));
}

////////////////////////////////////////////////////////////////////////////////
//
Expand Down
4 changes: 4 additions & 0 deletions src/vsg/core/Visitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,10 @@ void Visitor::apply(AnimationPath& animationPath)
{
apply(static_cast<Object&>(animationPath));
}
void Visitor::apply(ShaderCompileSettings& shaderCompileSettings)
{
apply(static_cast<Object&>(shaderCompileSettings));
}

////////////////////////////////////////////////////////////////////////////////
//
Expand Down
Loading