Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoaopengl.m @ 3685:64ce267332c6
Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 21 Jan 2010 06:21:52 +0000 |
parents | 19691cebb866 |
children | 6512cba48440 |
comparison
equal
deleted
inserted
replaced
3684:cc564f08884f | 3685:64ce267332c6 |
---|---|
80 | 80 |
81 SDL_GLContext | 81 SDL_GLContext |
82 Cocoa_GL_CreateContext(_THIS, SDL_Window * window) | 82 Cocoa_GL_CreateContext(_THIS, SDL_Window * window) |
83 { | 83 { |
84 NSAutoreleasePool *pool; | 84 NSAutoreleasePool *pool; |
85 SDL_VideoDisplay *display = SDL_GetDisplayFromWindow(window); | 85 SDL_VideoDisplay *display = window->display; |
86 SDL_DisplayData *displaydata = (SDL_DisplayData *)display->driverdata; | 86 SDL_DisplayData *displaydata = (SDL_DisplayData *)display->driverdata; |
87 NSOpenGLPixelFormatAttribute attr[32]; | 87 NSOpenGLPixelFormatAttribute attr[32]; |
88 NSOpenGLPixelFormat *fmt; | 88 NSOpenGLPixelFormat *fmt; |
89 NSOpenGLContext *context; | 89 NSOpenGLContext *context; |
90 int i = 0; | 90 int i = 0; |