Pioneer
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
NavLights Class Reference

#include <NavLights.h>

Collaboration diagram for NavLights:
Collaboration graph
[legend]

Classes

struct  LightBulb
 

Public Types

enum  LightColor {
  NAVLIGHT_RED = 0 , NAVLIGHT_GREEN = 1 , NAVLIGHT_BLUE = 2 , NAVLIGHT_YELLOW = 3 ,
  NAVLIGHT_OFF = 15
}
 

Public Member Functions

 NavLights (SceneGraph::Model *, float period=2.f)
 
virtual ~NavLights ()
 
virtual void SaveToJson (Json &jsonObj)
 
virtual void LoadFromJson (const Json &jsonObj)
 
void SetEnabled (bool on)
 
void Update (float time)
 
void Render (Graphics::Renderer *renderer)
 
void SetColor (unsigned int group, LightColor)
 
void SetMask (unsigned int group, uint8_t mask)
 

Static Public Member Functions

static void Init (Graphics::Renderer *)
 
static void Uninit ()
 

Protected Attributes

std::map< Uint32, std::vector< LightBulb > > m_groupLights
 
float m_time
 
float m_period
 
bool m_enabled
 
Graphics::VertexArray m_billboardTris
 

Member Enumeration Documentation

◆ LightColor

Enumerator
NAVLIGHT_RED 
NAVLIGHT_GREEN 
NAVLIGHT_BLUE 
NAVLIGHT_YELLOW 
NAVLIGHT_OFF 

Constructor & Destructor Documentation

◆ NavLights()

NavLights::NavLights ( SceneGraph::Model model,
float  period = 2.f 
)
Here is the call graph for this function:

◆ ~NavLights()

NavLights::~NavLights ( )
virtual

Member Function Documentation

◆ Init()

void NavLights::Init ( Graphics::Renderer renderer)
static
Here is the call graph for this function:

◆ LoadFromJson()

void NavLights::LoadFromJson ( const Json jsonObj)
virtual

◆ Render()

void NavLights::Render ( Graphics::Renderer renderer)
Here is the call graph for this function:

◆ SaveToJson()

void NavLights::SaveToJson ( Json jsonObj)
virtual

◆ SetColor()

void NavLights::SetColor ( unsigned int  group,
LightColor  c 
)

◆ SetEnabled()

void NavLights::SetEnabled ( bool  on)
inline

◆ SetMask()

void NavLights::SetMask ( unsigned int  group,
uint8_t  mask 
)

◆ Uninit()

void NavLights::Uninit ( )
static
Here is the call graph for this function:

◆ Update()

void NavLights::Update ( float  time)

Member Data Documentation

◆ m_billboardTris

Graphics::VertexArray NavLights::m_billboardTris
protected

◆ m_enabled

bool NavLights::m_enabled
protected

◆ m_groupLights

std::map<Uint32, std::vector<LightBulb> > NavLights::m_groupLights
protected

◆ m_period

float NavLights::m_period
protected

◆ m_time

float NavLights::m_time
protected

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