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/Ketsji/KX_LightIpoSGController.cpp | |
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/Ketsji/KX_LightIpoSGController.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_LightIpoSGController.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/gameengine/Ketsji/KX_LightIpoSGController.cpp b/source/gameengine/Ketsji/KX_LightIpoSGController.cpp index 1e65c6a6fc5..6b641f7a63f 100644 --- a/source/gameengine/Ketsji/KX_LightIpoSGController.cpp +++ b/source/gameengine/Ketsji/KX_LightIpoSGController.cpp @@ -33,7 +33,7 @@ #include "KX_LightIpoSGController.h" #include "KX_ScalarInterpolator.h" #include "KX_Light.h" -#include "RAS_LightObject.h" +#include "RAS_ILightObject.h" #if defined(_WIN64) typedef unsigned __int64 uint_ptr; @@ -50,7 +50,7 @@ bool KX_LightIpoSGController::Update(double currentTime) (*i)->Execute(m_ipotime);//currentTime); } - RAS_LightObject *lightobj; + RAS_ILightObject *lightobj; SG_Spatial* ob = (SG_Spatial*)m_pObject; KX_LightObject* kxlight = (KX_LightObject*) ob->GetSGClientObject(); @@ -62,9 +62,9 @@ bool KX_LightIpoSGController::Update(double currentTime) } if (m_modify_color) { - lightobj->m_red = m_col_rgb[0]; - lightobj->m_green = m_col_rgb[1]; - lightobj->m_blue = m_col_rgb[2]; + lightobj->m_color[0] = m_col_rgb[0]; + lightobj->m_color[1] = m_col_rgb[1]; + lightobj->m_color[2] = m_col_rgb[2]; } if (m_modify_dist) { |