Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoavideo.m @ 3057:089a77aebb7d
Added test program for SDL_CreateWindowFrom()
Make sure OpenGL library is loaded before working with OpenGL windows,
even those created with SDL_CreateWindowFrom()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 09 Feb 2009 05:32:12 +0000 |
parents | 99210400e8b9 |
children | fef1a835af43 00cace2d9080 |
comparison
equal
deleted
inserted
replaced
3056:a434fe6360df | 3057:089a77aebb7d |
---|---|
91 device->DestroyWindow = Cocoa_DestroyWindow; | 91 device->DestroyWindow = Cocoa_DestroyWindow; |
92 device->GetWindowWMInfo = Cocoa_GetWindowWMInfo; | 92 device->GetWindowWMInfo = Cocoa_GetWindowWMInfo; |
93 #ifdef SDL_VIDEO_OPENGL_CGL | 93 #ifdef SDL_VIDEO_OPENGL_CGL |
94 device->GL_LoadLibrary = Cocoa_GL_LoadLibrary; | 94 device->GL_LoadLibrary = Cocoa_GL_LoadLibrary; |
95 device->GL_GetProcAddress = Cocoa_GL_GetProcAddress; | 95 device->GL_GetProcAddress = Cocoa_GL_GetProcAddress; |
96 device->GL_UnloadLibrary = Cocoa_GL_UnloadLibrary; | |
96 device->GL_CreateContext = Cocoa_GL_CreateContext; | 97 device->GL_CreateContext = Cocoa_GL_CreateContext; |
97 device->GL_MakeCurrent = Cocoa_GL_MakeCurrent; | 98 device->GL_MakeCurrent = Cocoa_GL_MakeCurrent; |
98 device->GL_SetSwapInterval = Cocoa_GL_SetSwapInterval; | 99 device->GL_SetSwapInterval = Cocoa_GL_SetSwapInterval; |
99 device->GL_GetSwapInterval = Cocoa_GL_GetSwapInterval; | 100 device->GL_GetSwapInterval = Cocoa_GL_GetSwapInterval; |
100 device->GL_SwapWindow = Cocoa_GL_SwapWindow; | 101 device->GL_SwapWindow = Cocoa_GL_SwapWindow; |