From KOS, build fix for osg::Uniform::Callback to osg::UniformCallback change
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14889 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
9222506a2c
commit
fd806293be
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
#ifdef ENABLE_GLSL
|
#ifdef ENABLE_GLSL
|
||||||
|
|
||||||
class SineAnimation: public osg::Uniform::Callback
|
class SineAnimation: public osg::UniformCallback
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SineAnimation( float rate = 1.0f, float scale = 1.0f, float offset = 0.0f ) :
|
SineAnimation( float rate = 1.0f, float scale = 1.0f, float offset = 0.0f ) :
|
||||||
|
@ -96,7 +96,7 @@ char fragmentShaderSource[] =
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
class UniformVarying : public osg::Uniform::Callback
|
class UniformVarying : public osg::UniformCallback
|
||||||
{
|
{
|
||||||
virtual void operator () (osg::Uniform* uniform, osg::NodeVisitor* nv)
|
virtual void operator () (osg::Uniform* uniform, osg::NodeVisitor* nv)
|
||||||
{
|
{
|
||||||
|
@ -173,7 +173,7 @@ static osg::Shader* MarbleFragObj;
|
|||||||
// for demo simplicity, this one callback animates all the shaders, instancing
|
// for demo simplicity, this one callback animates all the shaders, instancing
|
||||||
// for each uniform but with a specific operation each time.
|
// for each uniform but with a specific operation each time.
|
||||||
|
|
||||||
class AnimateCallback: public osg::Uniform::Callback
|
class AnimateCallback: public osg::UniformCallback
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ static const char *blockyFragSource = {
|
|||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// callback for animating various Uniforms (currently only the SIN uniform)
|
// callback for animating various Uniforms (currently only the SIN uniform)
|
||||||
|
|
||||||
class AnimateCallback: public osg::Uniform::Callback
|
class AnimateCallback: public osg::UniformCallback
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum Operation { SIN };
|
enum Operation { SIN };
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
class SineAnimation: public osg::Uniform::Callback
|
class SineAnimation: public osg::UniformCallback
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SineAnimation( float rate = 1.0f, float scale = 1.0f, float offset = 0.0f ) :
|
SineAnimation( float rate = 1.0f, float scale = 1.0f, float offset = 0.0f ) :
|
||||||
|
Loading…
Reference in New Issue
Block a user