molecular
Public Member Functions | List of all members
molecular::gfx::SetupLight Class Reference

Sets up a single, directional light. More...

#include <SetupLight.h>

Inheritance diagram for molecular::gfx::SetupLight:
molecular::gfx::SingleCalleeRenderFunction molecular::gfx::RenderFunction

Public Member Functions

template<class TRenderManager >
 SetupLight (TRenderManager &manager)
 
void Execute () override
 
void SetDirectionalLight (bool enable, const Vector3 &direction=Vector3(1,-1,-1), const Vector3 &color=Vector3(1, 1, 1))
 Set light parameters. More...
 
void Set (Hash key, bool value) override
 Set bool property with given name. More...
 
- Public Member Functions inherited from molecular::gfx::SingleCalleeRenderFunction
template<class TRenderManager >
 SingleCalleeRenderFunction (TRenderManager &manager)
 
 SingleCalleeRenderFunction (Scoping &scoping, RenderCmdSink &renderer)
 
util::AxisAlignedBox GetBounds () const override
 
bool BoundsChangedSince (int framecounter) const override
 
void SetCallee (RenderFunction *callee)
 
- Public Member Functions inherited from molecular::gfx::RenderFunction
template<class TRenderManager >
 RenderFunction (TRenderManager &manager)
 
 RenderFunction (Scoping &scoping, RenderCmdSink &renderer)
 
virtual ~RenderFunction ()
 

Additional Inherited Members

- Protected Member Functions inherited from molecular::gfx::RenderFunction
template<class T >
const T * GetVariable (Hash key)
 Convenience shortcut to a variable pointer from the dynamic scope. More...
 
- Protected Attributes inherited from molecular::gfx::SingleCalleeRenderFunction
RenderFunctionmCallee = nullptr
 
- Protected Attributes inherited from molecular::gfx::RenderFunction
ScopingmScoping
 
RenderCmdSinkmRenderer
 

Detailed Description

Sets up a single, directional light.

Sets uniforms lightDirection0 and lightColor0.

Constructor & Destructor Documentation

template<class TRenderManager >
molecular::gfx::SetupLight::SetupLight ( TRenderManager &  manager)
inline

Member Function Documentation

void molecular::gfx::SetupLight::Execute ( )
overridevirtual
void molecular::gfx::SetupLight::Set ( Hash  ,
bool   
)
overridevirtual

Set bool property with given name.

This system is not finished.

Reimplemented from molecular::gfx::RenderFunction.

void molecular::gfx::SetupLight::SetDirectionalLight ( bool  enable,
const Vector3 direction = Vector3(1,-1,-1),
const Vector3 color = Vector3(1,1,1) 
)

Set light parameters.


The documentation for this class was generated from the following files: