Candle v1.0
2D lighting for SFML
LightSource.hpp File Reference

This file contains the LightingSource class and some convenient typedefs. More...

#include <vector>
#include "SFML/Graphics.hpp"
#include "Candle/geometry/Line.hpp"

Classes

class  candle::LightSource
 Interface for objects that emit light. More...
 

Typedefs

typedef sfu::Line candle::Edge
 Typedef with mere semantic purposes.
 
typedef std::vector< Edge > candle::EdgeVector
 Typedef to shorten the use of vectors as edge pools.
 

Functions

void candle::initializeTextures ()
 This function initializes the Texture used for the RadialLights. More...
 

Detailed Description

This file contains the LightingSource class and some convenient typedefs.

Author
Miguel Mejía Jiménez

Function Documentation

◆ initializeTextures()

void candle::initializeTextures ( )

This function initializes the Texture used for the RadialLights.

This function is called the first time a RadialLight is created , so the user shouldn't need to do it. Anyways, it could be necessary to do it explicitly if you declare a RadialLight that, for some reason, is global or static RadialLight and is not constructed in a normal order.