Old light method restored, it can be changed in lua now

This commit is contained in:
Henrique Santiago
2013-02-06 20:47:17 -02:00
parent 7f6a4bbbe5
commit 7f918a12a2
5 changed files with 17 additions and 1 deletions

View File

@@ -25,6 +25,7 @@
#include "declarations.h"
#include <framework/graphics/declarations.h>
#include <framework/graphics/painter.h>
#include "thingtype.h"
struct LightSource {
@@ -44,11 +45,14 @@ public:
void resize(const Size& size);
void draw(const Rect& dest, const Rect& src);
void setBlendEquation(Painter::BlendEquation blendEquation) { m_blendEquation = blendEquation; }
private:
void drawGlobalLight(const Light& light);
void drawLightSource(const Point& center, const Color& color, int radius);
TexturePtr generateLightBubble(float centerFactor);
Painter::BlendEquation m_blendEquation;
TexturePtr m_lightTexture;
FrameBufferPtr m_lightbuffer;
Light m_globalLight;