Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Want <cwant@ualberta.ca>2005-08-18 20:48:10 +0400
committerChris Want <cwant@ualberta.ca>2005-08-18 20:48:10 +0400
commite0189e3a9681ed60399b9cab12adb9e1899b7c6a (patch)
treee5ab6429f6e1700f812b836f78417e09abfc2c6d /source/gameengine/BlenderRoutines/KX_BlenderGL.cpp
parentda930194f9ffbc15cf49571d9fea6c15cabede50 (diff)
spack() is no longer used in the blender core, so I moved it to
this gameengine source file that depends on it.
Diffstat (limited to 'source/gameengine/BlenderRoutines/KX_BlenderGL.cpp')
-rw-r--r--source/gameengine/BlenderRoutines/KX_BlenderGL.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp b/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp
index 6d77d76a0da..50751be7c7d 100644
--- a/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp
+++ b/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp
@@ -81,6 +81,13 @@ extern "C" {
#include <GL/gl.h>
#endif
+/* was in drawmesh.c */
+void spack(unsigned int ucol)
+{
+ char *cp= (char *)&ucol;
+
+ glColor3ub(cp[3], cp[2], cp[1]);
+}
void BL_warp_pointer(int x,int y)
{