14#ifndef OSG_LIGHTSOURCE
15#define OSG_LIGHTSOURCE 1
32 const CopyOp& copyop=CopyOp::SHALLOW_COPY):
35 _light(dynamic_cast<
osg::
Light*>(copyop(ls._light.
get()))),
36 _referenceFrame(ls._referenceFrame) {}
Definition BoundingSphere:35
Definition LightSource:25
META_Node(osg, LightSource)
virtual BoundingSphere computeBound() const
void setReferenceFrame(ReferenceFrame rf)
void setLocalStateSetModes(StateAttribute::GLModeValue value=StateAttribute::ON)
LightSource(const LightSource &ls, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Definition LightSource:31
ref_ptr< Light > _light
Definition LightSource:86
void setStateSetModes(StateSet &, StateAttribute::GLModeValue) const
virtual void setThreadSafeRefUnref(bool threadSafe)
void setLight(Light *light)
ReferenceFrame getReferenceFrame() const
Definition LightSource:59
ReferenceFrame
Definition LightSource:41
@ RELATIVE_RF
Definition LightSource:42
const Light * getLight() const
Definition LightSource:68
StateAttribute::GLModeValue _value
Definition LightSource:85
ReferenceFrame _referenceFrame
Definition LightSource:88
Light * getLight()
Definition LightSource:65
unsigned int GLModeValue
Definition StateAttribute:85
author: Julien Valentin 2017 (mp3butcher@hotmail.com)
Definition AlphaFunc:19
T * get(unsigned int contextID)
Definition ContextData:152
#define OSG_EXPORT
Definition osg/Export:39