PixelLightAPI
.
|
Omni directional point light scene node were light is emitted from a single point in space. More...
#include <SNPointLight.h>
Public Types | |
enum | EDebugFlags { DebugNoScissorRectangle = 1<<8 } |
Scene node debug flags (SceneNode debug flags extension) More... | |
Public Member Functions | |
PLS_API | SNPointLight () |
Default constructor. | |
virtual PLS_API | ~SNPointLight () |
Destructor. | |
PLS_API const PLMath::PlaneSet & | GetBoxPlaneSet () |
Returns the box plane set. | |
virtual PLS_API bool | IsRenderLight () const override |
virtual PLS_API bool | IsPointLight () const override |
Returns whether this scene node is a point light (SNPointLight) or not. | |
virtual PLS_API void | DrawDebug (PLRenderer::Renderer &cRenderer, const VisNode *pVisNode=nullptr) override |
This function is called when the debug parts of the scene are drawn. | |
Static Public Attributes | |
static PLS_API const float | MinRange |
Protected Types | |
enum | EInternalLightFlags { RecalculateBoxPlaneSet = 1<<0 } |
Flags which hold ínternal light information. More... | |
Protected Member Functions | |
virtual PLS_API void | UpdateAABoundingBox () override |
Updates the axis align bounding box in 'scene node space'. | |
virtual PLS_API void | GetBoundingSphere (PLMath::Sphere &cSphere) override |
Returns the bounding sphere in 'scene node space'. | |
virtual PLS_API void | GetContainerBoundingSphere (PLMath::Sphere &cSphere) override |
Returns the current bounding sphere in 'scene container space'. | |
Protected Attributes | |
PLCore::uint8 | m_nInternalLightFlags |
Omni directional point light scene node were light is emitted from a single point in space.
Scene node debug flags (SceneNode debug flags extension)
enum PLScene::SNPointLight::EInternalLightFlags [protected] |
Flags which hold ínternal light information.
Reimplemented in PLScene::SNSpotLight.
PLS_API PLScene::SNPointLight::SNPointLight | ( | ) |
Default constructor.
virtual PLS_API PLScene::SNPointLight::~SNPointLight | ( | ) | [virtual] |
Destructor.
PLS_API const PLMath::PlaneSet& PLScene::SNPointLight::GetBoxPlaneSet | ( | ) |
Returns the box plane set.
virtual PLS_API bool PLScene::SNPointLight::IsRenderLight | ( | ) | const [override, virtual] |
virtual PLS_API bool PLScene::SNPointLight::IsPointLight | ( | ) | const [override, virtual] |
Returns whether this scene node is a point light (SNPointLight) or not.
Reimplemented from PLScene::SNLight.
virtual PLS_API void PLScene::SNPointLight::UpdateAABoundingBox | ( | ) | [override, protected, virtual] |
Updates the axis align bounding box in 'scene node space'.
Reimplemented from PLScene::SceneNode.
Reimplemented in PLScene::SNSpotLight.
virtual PLS_API void PLScene::SNPointLight::GetBoundingSphere | ( | PLMath::Sphere & | cSphere | ) | [override, protected, virtual] |
Returns the bounding sphere in 'scene node space'.
[out] | cSphere | Receives the bounding sphere in 'scene node space' |
Reimplemented from PLScene::SceneNode.
Reimplemented in PLScene::SNSpotLight.
virtual PLS_API void PLScene::SNPointLight::GetContainerBoundingSphere | ( | PLMath::Sphere & | cSphere | ) | [override, protected, virtual] |
Returns the current bounding sphere in 'scene container space'.
[out] | cSphere | Receives the current bounding in 'scene container space' |
Reimplemented from PLScene::SceneNode.
Reimplemented in PLScene::SNSpotLight.
virtual PLS_API void PLScene::SNPointLight::DrawDebug | ( | PLRenderer::Renderer & | cRenderer, |
const VisNode * | pVisNode = nullptr |
||
) | [override, virtual] |
This function is called when the debug parts of the scene are drawn.
[in] | cRenderer | The used renderer |
[in] | pVisNode | The current visibility node of this scene node, can be a null pointer |
Reimplemented from PLScene::SceneNode.
Reimplemented in PLScene::SNSpotLight.
PLS_API const float PLScene::SNPointLight::MinRange [static] |
Minimum point light range (0.0001)
PLCore::uint8 PLScene::SNPointLight::m_nInternalLightFlags [protected] |
Internal light flags
|