Mercurial > sdl-ios-xcode
comparison src/video/quartz/SDL_QuartzVideo.h @ 1189:c96b326b90ba
Moved Quartz SDL_GL_LoadLibrary() to SDL_loadso interface.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 23 Nov 2005 07:23:48 +0000 |
parents | 49d3efec6651 |
children | 7663bb0f52c7 |
comparison
equal
deleted
inserted
replaced
1188:f31856cf29ae | 1189:c96b326b90ba |
---|---|
62 #include "SDL_timer.h" | 62 #include "SDL_timer.h" |
63 #include "SDL_syswm.h" | 63 #include "SDL_syswm.h" |
64 #include "SDL_sysvideo.h" | 64 #include "SDL_sysvideo.h" |
65 #include "SDL_pixels_c.h" | 65 #include "SDL_pixels_c.h" |
66 #include "SDL_events_c.h" | 66 #include "SDL_events_c.h" |
67 #include "SDL_loadso.h" | |
67 | 68 |
68 /* | 69 /* |
69 This is a workaround to directly access NSOpenGLContext's CGL context | 70 This is a workaround to directly access NSOpenGLContext's CGL context |
70 We need this to check for errors NSOpenGLContext doesn't support | 71 We need this to check for errors NSOpenGLContext doesn't support |
71 */ | 72 */ |
115 ImageSequence yuv_seq; | 116 ImageSequence yuv_seq; |
116 PlanarPixmapInfoYUV420 *yuv_pixmap; | 117 PlanarPixmapInfoYUV420 *yuv_pixmap; |
117 Sint16 yuv_width, yuv_height; | 118 Sint16 yuv_width, yuv_height; |
118 CGrafPtr yuv_port; | 119 CGrafPtr yuv_port; |
119 | 120 |
120 CFBundleRef opengl_bundle; /* dynamically loaded OpenGL library. */ | 121 void *opengl_library; /* dynamically loaded OpenGL library. */ |
121 } SDL_PrivateVideoData; | 122 } SDL_PrivateVideoData; |
122 | 123 |
123 #define _THIS SDL_VideoDevice *this | 124 #define _THIS SDL_VideoDevice *this |
124 #define display_id (this->hidden->display) | 125 #define display_id (this->hidden->display) |
125 #define mode (this->hidden->mode) | 126 #define mode (this->hidden->mode) |
153 #define sem1 (this->hidden->sem1) | 154 #define sem1 (this->hidden->sem1) |
154 #define sem2 (this->hidden->sem2) | 155 #define sem2 (this->hidden->sem2) |
155 #define current_buffer (this->hidden->current_buffer) | 156 #define current_buffer (this->hidden->current_buffer) |
156 #define quit_thread (this->hidden->quit_thread) | 157 #define quit_thread (this->hidden->quit_thread) |
157 #define system_version (this->hidden->system_version) | 158 #define system_version (this->hidden->system_version) |
158 #define opengl_bundle (this->hidden->opengl_bundle) | 159 #define opengl_library (this->hidden->opengl_library) |
159 | 160 |
160 /* grab states - the input is in one of these states */ | 161 /* grab states - the input is in one of these states */ |
161 enum { | 162 enum { |
162 QZ_UNGRABBED = 0, | 163 QZ_UNGRABBED = 0, |
163 QZ_VISIBLE_GRAB, | 164 QZ_VISIBLE_GRAB, |