Horde3D
http://horde3d.org/forums/

Horde3D 0.13 coming soon
http://horde3d.org/forums/viewtopic.php?f=1&t=184
Page 2 of 2

Author:  marciano [ 25.01.2008, 12:28 ]
Post subject: 

Yes of course, but I would need them as soon as possible since we wanted to finish the release this week. Next week I'm unfortunately busy with other things...

Author:  swiftcoder [ 25.01.2008, 16:14 ]
Post subject: 

marciano wrote:
Yes of course, but I would need them as soon as possible since we wanted to finish the release this week. Next week I'm unfortunately busy with other things...


Just take these 3 snippets and replace the matching section/function...

Here is the modified code for utPlatform.h, line 25:
Code:
#ifndef PLATFORM_WIN
#   if defined( WIN32 ) || defined( _WINDOWS )
#      define PLATFORM_WIN
#   endif
#endif

#ifndef PLATFORM_MAC
#   if defined(__APPLE__) || defined(__APPLE_CC__)
#      define PLATFORM_MAC
#   endif
#endif

#ifndef PLATFORM_WIN
#   define _stricmp strcasecmp
#   define _mkdir( name ) mkdir( name, -1 )
#endif


In utOpenGL.h, line 33:
Code:
#ifdef PLATFORM_WIN
#   define WIN32_LEAN_AND_MEAN 1
#   include <windows.h>
#   define GLAPI __declspec( dllimport )
#   define GLAPIENTRY _stdcall
#   define GLAPIENTRYP _stdcall *
#else
#   include <stddef.h>
#   define GLAPI
#   define GLAPIENTRY
#   define GLAPIENTRYP *

#   ifdef PLATFORM_MAC
#      include <Carbon/Carbon.h>
#   else
extern "C" void (*glXGetProcAddressARB( const unsigned char *procName ))( void );
#   endif
#endif


And for utOpenGL.cpp, line 357:
Code:
void *platGetProcAddress( const char *funcName )
{
#ifdef PLATFORM_WIN
   return (void *)wglGetProcAddress( funcName );
#elif defined(PLATFORM_MAC)
   CFBundleRef bundle;
   CFURLRef bundleURL = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, CFSTR("/System/Library/Frameworks/OpenGL.framework"), kCFURLPOSIXPathStyle, true);
   
   CFStringRef functionName = CFStringCreateWithCString(kCFAllocatorDefault, funcName, kCFStringEncodingASCII);
   
   void *function;
   
   bundle = CFBundleCreate(kCFAllocatorDefault, bundleURL);
   assert(bundle != NULL);
   
   function = CFBundleGetFunctionPointerForName(bundle, functionName);
   
   CFRelease(bundleURL);
   CFRelease(functionName);
   CFRelease(bundle);
   
   return function;   
#else
   return (void *)glXGetProcAddressARB( (const GLubyte *)funcName );
#endif
}

Author:  marciano [ 26.01.2008, 22:01 ]
Post subject: 

Thanks swiftcoder for your quick post.

Horde3D 0.14 is available now. You can get it from the downloads site. :)

Unfortunately the new Horde editor has to be delayed a bit since Volker has encountered a problem which needs some restructuring for a clean solution...

Page 2 of 2 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/