Horde3D

Next-Generation Graphics Engine
It is currently 22.12.2024, 06:04

All times are UTC + 1 hour




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: 25.01.2008, 12:28 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
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...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 25.01.2008, 16:14 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
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
}


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: 26.01.2008, 22:01 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
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...


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group