diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2014-03-28 09:32:06 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2014-03-28 09:32:06 +0400 |
commit | df9d6737b912b71fb91579b43ea6c7786d88f803 (patch) | |
tree | 0466230d0ce29d297888826f623426728243a995 /source/gameengine/Rasterizer/RAS_IRasterizer.h | |
parent | 3ec0c73211d6786664a303a7413cae4e67ef6cf5 (diff) |
BGE code cleanup: Removing OpenGL and bf_gpu code from KX_LightObject
The ultimate goal is to only allow the rasterizer to handle OpenGL and bf_gpu
calls. This commit creates a RAS_ILightObject interface and a RAS_OpenGLLight
implementation.
Diffstat (limited to 'source/gameengine/Rasterizer/RAS_IRasterizer.h')
-rw-r--r-- | source/gameengine/Rasterizer/RAS_IRasterizer.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/gameengine/Rasterizer/RAS_IRasterizer.h b/source/gameengine/Rasterizer/RAS_IRasterizer.h index 887ebc476b0..d7b52213191 100644 --- a/source/gameengine/Rasterizer/RAS_IRasterizer.h +++ b/source/gameengine/Rasterizer/RAS_IRasterizer.h @@ -53,6 +53,7 @@ using namespace std; class RAS_ICanvas; class RAS_IPolyMaterial; class RAS_MeshSlot; +class RAS_ILightObject; typedef vector<unsigned short> KX_IndexArray; typedef vector<RAS_TexVert> KX_VertexArray; @@ -470,9 +471,11 @@ public: virtual void PopMatrix() = 0; - virtual void AddLight(struct RAS_LightObject *lightobject) = 0; + virtual RAS_ILightObject *CreateLight() = 0; - virtual void RemoveLight(struct RAS_LightObject *lightobject) = 0; + virtual void AddLight(RAS_ILightObject *lightobject) = 0; + + virtual void RemoveLight(RAS_ILightObject *lightobject) = 0; virtual void MotionBlur() = 0; |