Rune Engine  Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
lightSource.h
1 
9 #ifndef LIGHTSOURCE_H_DEFINED
10 #define LIGHTSOURCE_H_DEFINED
11 
12 #include "core.h"
13 #include <Renderer\drawable.h>
14 #include <Entities\component.h>
15 #include <Renderer\shader.h>
16 
17 namespace rune{
18 
19 class RUNE_ENGINE LightSource : public Drawable, public Component
20 {
21 
22 private:
23 
24  Shader lightShader;
25 
26 
27 public:
28 
29  void start() override;
30  void update() override;
31 
32 };
33 }
34 
35 #endif
rune::Component
A component of a rune::GameObject, this class is used to add functionality to a object in the game wo...
Definition: component.h:23
rune::Shader
A shader that can be used to render objects to the screen.
Definition: shader.h:41
rune::Drawable
Interface class for creating something that can be drawn to the screen.
Definition: drawable.h:20
rune::LightSource
A light source to be used in a scene. Casts light and shadows on objects.
Definition: lightSource.h:20
rune
The main namespace to be used for interfacing with the engine.
Definition: animator.h:21