OpenSceneGraph 3.6.5
UpdateMaterial
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
19#include <osgAnimation/Export>
20#include <osg/StateAttribute>
21#include <osg/Material>
22
23namespace osgAnimation
24{
25
26 class OSGANIMATION_EXPORT UpdateMaterial : public AnimationUpdateCallback<osg::StateAttributeCallback>
27 {
28 protected:
30
31 public:
32
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);
43 };
44}
45
46#endif
The osgAnimation library provides general purpose utility classes for animation.
Definition Action:34
TemplateTarget< osg::Vec4 > Vec4Target
Definition Target:127
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
Material - encapsulates OpenGL glMaterial state.
Definition Material:32
Visitor for type safe operations on osg::Nodes.
Definition NodeVisitor:82
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
Base class for state attributes.
Definition StateAttribute:77
AnimationUpdateCallback()
Definition AnimationUpdateCallback:38
Definition Channel:33
bool link(Channel *channel)
UpdateMaterial(const std::string &name="")
META_Object(osgAnimation, UpdateMaterial)
UpdateMaterial(const UpdateMaterial &apc, const osg::CopyOp &copyop)
void update(osg::Material &material)
osg::ref_ptr< Vec4Target > _diffuse
Definition UpdateMaterial:29
#define OSGANIMATION_EXPORT
Definition Export:40

osg logo
Generated at Wed Jul 23 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.