source: trunk/src/light.h @ 2370

Last change on this file since 2370 was 2289, checked in by sam, 7 years ago

easymesh: interface the shiny shader with new Light objects.

File size: 902 bytes
RevLine 
[2289]1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://www.wtfpl.net/ for more details.
9//
10
11//
12// The Light class
13// ---------------
14//
15
16#if !defined __LIGHT_H__
17#define __LIGHT_H__
18
19#include "worldentity.h"
20
21namespace lol
22{
23
24class Light : public WorldEntity
25{
26public:
27    Light();
28    ~Light();
29
30    char const *GetName() { return "<light>"; }
31
32    void SetColor(vec4 const &col);
33    vec4 GetColor();
34
35    void SetPosition(vec4 const &pos);
36    vec4 GetPosition();
37
38protected:
39    virtual void TickGame(float seconds);
40    virtual void TickDraw(float seconds);
41
42private:
43    vec4 m_color;
44    bool m_directional;
45};
46
47} /* namespace lol */
48
49#endif /* __LIGHT_H__ */
50
Note: See TracBrowser for help on using the repository browser.