diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2006-01-07 03:14:37 +0300 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2006-01-07 03:14:37 +0300 |
commit | bed24bc299616f8ee05762a15d083b56df6b3450 (patch) | |
tree | 1f0438f43fa6ad1120dfe3e1b6b21d7762efa2dc /source | |
parent | 524ea29aaa77922ff123b04deaabed19517214e7 (diff) |
more work to get armatures/blender materials to work under non-windows platforms
Diffstat (limited to 'source')
5 files changed, 10 insertions, 10 deletions
diff --git a/source/gameengine/Ketsji/KX_BlenderMaterial.cpp b/source/gameengine/Ketsji/KX_BlenderMaterial.cpp index 8884e82e2f5..ab2b9c63b21 100644 --- a/source/gameengine/Ketsji/KX_BlenderMaterial.cpp +++ b/source/gameengine/Ketsji/KX_BlenderMaterial.cpp @@ -1,7 +1,7 @@ + // ------------------------------------ // ... // ------------------------------------ -#ifdef WIN32 #ifdef HAVE_CONFIG_H #include <config.h> #endif @@ -973,4 +973,3 @@ KX_PYMETHODDEF_DOC( KX_BlenderMaterial, setTexture , "setTexture( index, tex)") return NULL; } -#endif //WIN32 diff --git a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/ARB_multitexture.h b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/ARB_multitexture.h index 0c68673ffb3..0730c632b82 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/ARB_multitexture.h +++ b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/ARB_multitexture.h @@ -11,9 +11,7 @@ GL_ARB_multitexture ---------------------------------------------------------------------------- */ #ifndef GL_ARB_multitexture -#ifdef WIN32 #define GL_ARB_multitexture 1 -#endif //WIN32 #endif #ifdef GL_ARB_multitexture diff --git a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_GLExtensionManager.cpp b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_GLExtensionManager.cpp index 71b68815c15..dee75662236 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_GLExtensionManager.cpp +++ b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_GLExtensionManager.cpp @@ -322,7 +322,6 @@ BL_EXTInfo RAS_EXT_support; #if defined(GL_ARB_multitexture) int max_texture_units = 2; - PFNGLACTIVETEXTUREARBPROC glActiveTextureARB; PFNGLCLIENTACTIVETEXTUREARBPROC glClientActiveTextureARB; PFNGLMULTITEXCOORD1DARBPROC glMultiTexCoord1dARB; @@ -466,10 +465,12 @@ static void LinkExtensions() } #endif +#ifdef WIN32 #ifdef GL_ARB_multitexture if (QueryExtension("GL_ARB_multitexture")) { - glActiveTextureARB = reinterpret_cast<PFNGLACTIVETEXTUREARBPROC>(bglGetProcAddress((const GLubyte *) "glActiveTextureARB")); + void* ptr=0; + glActiveTextureARB = reinterpret_cast<PFNGLACTIVETEXTUREARBPROC>(ptr);//bglGetProcAddress((const GLubyte *) "glActiveTextureARB")); glClientActiveTextureARB = reinterpret_cast<PFNGLCLIENTACTIVETEXTUREARBPROC>(bglGetProcAddress((const GLubyte *) "glClientActiveTextureARB")); glMultiTexCoord1dARB = reinterpret_cast<PFNGLMULTITEXCOORD1DARBPROC>(bglGetProcAddress((const GLubyte *) "glMultiTexCoord1dARB")); glMultiTexCoord1dvARB = reinterpret_cast<PFNGLMULTITEXCOORD1DVARBPROC>(bglGetProcAddress((const GLubyte *) "glMultiTexCoord1dvARB")); @@ -513,9 +514,9 @@ static void LinkExtensions() } } #endif +#endif// WIN32 - - +#ifdef WIN32 #ifdef GL_EXT_blend_color if (QueryExtension("GL_EXT_blend_color")) { @@ -530,7 +531,7 @@ static void LinkExtensions() } } #endif - +#endif #ifdef GL_ARB_shader_objects if (QueryExtension("GL_ARB_shader_objects")) { diff --git a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_GLExtensionManager.h b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_GLExtensionManager.h index 119eda3b5bb..5009691d3f5 100644 --- a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_GLExtensionManager.h +++ b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_GLExtensionManager.h @@ -44,7 +44,6 @@ #include "EXT_separate_specular_color.h" #include "ARB_multitexture.h" - namespace bgl { /** @@ -409,6 +408,7 @@ extern PFNGLBLENDCOLOREXTPROC glBlendColorEXT; #endif #ifdef GL_ARB_multitexture + extern int max_texture_units; typedef void (APIENTRY * PFNGLACTIVETEXTUREARBPROC) (GLenum texture); typedef void (APIENTRY * PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture); diff --git a/source/nan_definitions.mk b/source/nan_definitions.mk index ade60584382..93a0557ab78 100644 --- a/source/nan_definitions.mk +++ b/source/nan_definitions.mk @@ -47,6 +47,8 @@ all debug:: # First generic defaults for all platforms which should be constant. # Note: ?= lets these defaults be overruled by environment variables, export NAN_NO_KETSJI=true + export NAN_JUST_BLENDERDYNAMIC=true + export NAN_NO_OPENAL=true export SRCHOME ?= $(NANBLENDERHOME)/source export CONFIG_GUESS := $(shell ${SRCHOME}/tools/guess/guessconfig) export OS := $(shell echo ${CONFIG_GUESS} | sed -e 's/-.*//') |