comparison src/video/macrom/SDL_romvideo.c @ 916:46916168361d

Date: Sun, 25 Jul 2004 23:10:03 +0800 From: Chris Taylor Subject: SDL for Macintosh Programmer's Workshop: removed dynamic loading I'm working on a game called D2X which uses SDL, and I recently ported it to Mac OS 9. I used MPW to build it. It uses OpenGL. To get it to work, I had to build SDL so it doesn't dynamically load OpenGL. This is because I don't think MPW supports dynamic loading. The following patch makes sure when SDL is built under MPW, dynamic loading of shared libraries is disabled.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 25 Jul 2004 19:43:56 +0000
parents 0c3e00cc9580
children c1c2efca4548
comparison
equal deleted inserted replaced
915:01cddd0f2efb 916:46916168361d
161 device->FlipHWSurface = NULL; 161 device->FlipHWSurface = NULL;
162 device->FreeHWSurface = ROM_FreeHWSurface; 162 device->FreeHWSurface = ROM_FreeHWSurface;
163 #ifdef HAVE_OPENGL 163 #ifdef HAVE_OPENGL
164 device->GL_MakeCurrent = Mac_GL_MakeCurrent; 164 device->GL_MakeCurrent = Mac_GL_MakeCurrent;
165 device->GL_SwapBuffers = Mac_GL_SwapBuffers; 165 device->GL_SwapBuffers = Mac_GL_SwapBuffers;
166 #ifdef __MWERKS__
166 device->GL_LoadLibrary = Mac_GL_LoadLibrary; 167 device->GL_LoadLibrary = Mac_GL_LoadLibrary;
167 device->GL_GetProcAddress = Mac_GL_GetProcAddress; 168 device->GL_GetProcAddress = Mac_GL_GetProcAddress;
168 #endif 169 #else
170 device->GL_LoadLibrary = NULL;
171 device->GL_GetProcAddress = NULL;
172 #endif // CodeWarrior
173 #endif // Have OpenGL
169 device->SetCaption = Mac_SetCaption; 174 device->SetCaption = Mac_SetCaption;
170 device->SetIcon = NULL; 175 device->SetIcon = NULL;
171 device->IconifyWindow = NULL; 176 device->IconifyWindow = NULL;
172 device->GrabInput = NULL; 177 device->GrabInput = NULL;
173 device->GetWMInfo = NULL; 178 device->GetWMInfo = NULL;