OSG
3.4.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
osg_head
include
osgAnimation
UpdateMaterial.h
Go to the documentation of this file.
1
/* -*-c++-*-
2
* Copyright (C) 2009 Cedric Pinson <cedric.pinson@plopbyte.net>
3
*
4
* This library is open source and may be redistributed and/or modified under
5
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
6
* (at your option) any later version. The full license is in LICENSE file
7
* included with this distribution, and on the openscenegraph.org website.
8
*
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* OpenSceneGraph Public License for more details.
13
*/
14
15
#ifndef OSGANIMATION_UPDATE_MATERIAL
16
#define OSGANIMATION_UPDATE_MATERIAL 1
17
18
#include <osgAnimation/AnimationUpdateCallback>
19
#include <osgAnimation/Export>
20
#include <osg/StateAttribute>
21
#include <osg/Material>
22
23
namespace
osgAnimation
24
{
25
26
class
OSGANIMATION_EXPORT
UpdateMaterial
:
public
AnimationUpdateCallback
<osg::StateAttributeCallback>
27
{
28
protected
:
29
osg::ref_ptr<Vec4Target>
_diffuse
;
30
31
public
:
32
33
META_Object
(
osgAnimation
,
UpdateMaterial
);
34
35
UpdateMaterial
(
const
std::string& name =
""
);
36
UpdateMaterial
(
const
UpdateMaterial
& apc,
const
osg::CopyOp
& copyop);
37
39
virtual
void
operator () (
osg::StateAttribute
*,
osg::NodeVisitor
*);
40
void
update(
osg::Material
& material);
41
bool
link(
Channel
* channel);
42
Vec4Target
* getDiffuse();
43
};
44
}
45
46
#endif
OSGANIMATION_EXPORT
#define OSGANIMATION_EXPORT
Definition:
Export.h:40
osg::ref_ptr
Definition:
ref_ptr.h:25
osgAnimation::TemplateTarget
Definition:
Target.h:49
osgAnimation
Definition:
Action.h:33
osgAnimation::Channel
Definition:
Channel.h:31
osgAnimation::UpdateMaterial
Definition:
UpdateMaterial.h:26
osgAnimation::AnimationUpdateCallback
Definition:
AnimationUpdateCallback.h:35
META_Object
#define META_Object(library, name)
Definition:
Object.h:42
osg::Material
Definition:
Material.h:31
osgAnimation::UpdateMaterial::_diffuse
osg::ref_ptr< Vec4Target > _diffuse
Definition:
UpdateMaterial.h:29
osg::StateAttribute
Definition:
StateAttribute.h:76
osg::CopyOp
Definition:
CopyOp.h:40
osg::NodeVisitor
Definition:
NodeVisitor.h:67
Generated on Tue Oct 4 2016 19:20:47 for OSG by
1.8.8