14#ifndef OSG_LIGHTSOURCE
15#define OSG_LIGHTSOURCE 1
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
T * get(unsigned int contextID)
Definition ContextData:152
BoundingSphered BoundingSphere
Definition BoundingSphere:308
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Light state class which encapsulates OpenGL glLight() functionality.
Definition Light:40
META_Node(osg, LightSource)
virtual BoundingSphere computeBound() const
Compute the bounding sphere around Node's geometry or children.
void setReferenceFrame(ReferenceFrame rf)
Set the light sources's ReferenceFrame, either to be relative to its parent reference frame,...
void setLocalStateSetModes(StateAttribute::GLModeValue value=StateAttribute::ON)
Set up the local StateSet.
LightSource(const LightSource &ls, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
Definition LightSource:31
ref_ptr< Light > _light
Definition LightSource:86
void setStateSetModes(StateSet &, StateAttribute::GLModeValue) const
Set the GLModes on StateSet associated with the LightSource.
virtual void setThreadSafeRefUnref(bool threadSafe)
Set whether to use a mutex to ensure ref() and unref() are thread safe.
void setLight(Light *light)
Set the attached light.
ReferenceFrame getReferenceFrame() const
Definition LightSource:59
ReferenceFrame
Definition LightSource:41
@ ABSOLUTE_RF
Definition LightSource:43
@ RELATIVE_RF
Definition LightSource:42
const Light * getLight() const
Get the const attached light.
Definition LightSource:68
StateAttribute::GLModeValue _value
Definition LightSource:85
ReferenceFrame _referenceFrame
Definition LightSource:88
Light * getLight()
Get the attached light.
Definition LightSource:65
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
@ ON
means that associated GLMode is enabled and Override is disabled.
Definition StateAttribute:103
unsigned int GLModeValue
GLModeValue is used to specify whether a mode is enabled (ON) or disabled (OFF).
Definition StateAttribute:85
Stores a set of modes and attributes which represent a set of OpenGL state.
Definition StateSet:46
#define OSG_EXPORT
Definition Export:39