comparison src/video/cocoa/SDL_cocoavideo.m @ 1936:83946ee0ff1f

Implemented OpenGL support on Mac OS X The OpenGL renderer works without changes, yay! :)
author Sam Lantinga <slouken@libsdl.org>
date Tue, 25 Jul 2006 06:22:42 +0000
parents 7ee5297340f7
children 420716272158
comparison
equal deleted inserted replaced
1935:8a9b367a80f3 1936:83946ee0ff1f
85 device->MinimizeWindow = Cocoa_MinimizeWindow; 85 device->MinimizeWindow = Cocoa_MinimizeWindow;
86 device->RestoreWindow = Cocoa_RestoreWindow; 86 device->RestoreWindow = Cocoa_RestoreWindow;
87 device->SetWindowGrab = Cocoa_SetWindowGrab; 87 device->SetWindowGrab = Cocoa_SetWindowGrab;
88 device->DestroyWindow = Cocoa_DestroyWindow; 88 device->DestroyWindow = Cocoa_DestroyWindow;
89 device->GetWindowWMInfo = Cocoa_GetWindowWMInfo; 89 device->GetWindowWMInfo = Cocoa_GetWindowWMInfo;
90 /*
91 #ifdef SDL_VIDEO_OPENGL 90 #ifdef SDL_VIDEO_OPENGL
92 device->GL_LoadLibrary = Cocoa_GL_LoadLibrary; 91 device->GL_LoadLibrary = Cocoa_GL_LoadLibrary;
93 device->GL_GetProcAddress = Cocoa_GL_GetProcAddress; 92 device->GL_GetProcAddress = Cocoa_GL_GetProcAddress;
94 device->GL_GetWindowAttribute = Cocoa_GL_GetWindowAttribute;
95 device->GL_CreateContext = Cocoa_GL_CreateContext; 93 device->GL_CreateContext = Cocoa_GL_CreateContext;
96 device->GL_MakeCurrent = Cocoa_GL_MakeCurrent; 94 device->GL_MakeCurrent = Cocoa_GL_MakeCurrent;
97 device->GL_SetSwapInterval = Cocoa_GL_SetSwapInterval; 95 device->GL_SetSwapInterval = Cocoa_GL_SetSwapInterval;
98 device->GL_GetSwapInterval = Cocoa_GL_GetSwapInterval; 96 device->GL_GetSwapInterval = Cocoa_GL_GetSwapInterval;
99 device->GL_SwapWindow = Cocoa_GL_SwapWindow; 97 device->GL_SwapWindow = Cocoa_GL_SwapWindow;
100 device->GL_DeleteContext = Cocoa_GL_DeleteContext; 98 device->GL_DeleteContext = Cocoa_GL_DeleteContext;
101 #endif 99 #endif
102 */
103 100
104 device->free = Cocoa_DeleteDevice; 101 device->free = Cocoa_DeleteDevice;
105 102
106 return device; 103 return device;
107 } 104 }