Rune Engine  Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
rune::LightSource Class Reference

A light source to be used in a scene. Casts light and shadows on objects. More...

#include <lightSource.h>

Inheritance diagram for rune::LightSource:
Collaboration diagram for rune::LightSource:

Public Member Functions

void start () override
 A function for each component that is called once at the beginning of the components lifetime.
 
void update () override
 A function for each component that is called every frame.
 
- Public Member Functions inherited from rune::Drawable
virtual void draw (rune::RenderWindow &)=0
 Draw the object to a render window.
 
- Public Member Functions inherited from rune::Component
 Component ()=default
 Default constructor to set up.
 
virtual void awake ()
 A function that will be called before all other start functions but after the component has been assigned to a GameObject.
 
virtual void fixedUpdate ()
 A function for each component that is called once every physics update.
 
void setParent (GameObject *newParent)
 A function to set the pointer to the parent rune::GameObject for each component. More...
 
void setEnable (bool newEnable)
 Enable or disable the component. More...
 
bool isComponentEnabled (void)
 Gets whether or not the current component is enabled.
 
void onNotify (Signal const &signal) override
 A virtual method to be overridden by a concrete implementation of the observer class.
 

Additional Inherited Members

- Protected Attributes inherited from rune::Component
GameObjectparentObject = nullptr
 The rune::GameObject that this component is attached to. If not attached to a rune::GameObject this will equal nullptr.
 
bool isEnabled = true
 Whether or not the component is currently enabled. If not enabled, update function will not be called.
 

Detailed Description

A light source to be used in a scene. Casts light and shadows on objects.

Author
Thomas Montano
Date
April 22 2020

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