From df9d6737b912b71fb91579b43ea6c7786d88f803 Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Thu, 27 Mar 2014 22:32:06 -0700 Subject: 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. --- source/gameengine/VideoTexture/Texture.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/gameengine/VideoTexture') diff --git a/source/gameengine/VideoTexture/Texture.cpp b/source/gameengine/VideoTexture/Texture.cpp index c187f7c41c1..35a73193a24 100644 --- a/source/gameengine/VideoTexture/Texture.cpp +++ b/source/gameengine/VideoTexture/Texture.cpp @@ -36,6 +36,7 @@ #include "KX_GameObject.h" #include "KX_Light.h" #include "RAS_MeshObject.h" +#include "RAS_ILightObject.h" #include "DNA_mesh_types.h" #include "DNA_meshdata_types.h" #include "DNA_image_types.h" @@ -237,7 +238,7 @@ static int Texture_init(Texture *self, PyObject *args, PyObject *kwds) } else if (lamp != NULL) { - self->m_imgTexture = lamp->GetTextureImage(texID); + self->m_imgTexture = lamp->GetLightData()->GetTextureImage(texID); self->m_useMatTexture = false; } -- cgit v1.2.3