comparison src/video/quartz/SDL_QuartzVideo.h @ 1181:49d3efec6651

Quartz driver OpenGL updates: Driver can now open whatever library is specified in SDL_GL_LoadLibrary() call (previously, it ignored this parameter), and uses the default system library when NULL is specified. Also, library is loaded once in SDL_GL_LoadLibrary() and not every call to SDL_GL_GetProcAddress().
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 22 Nov 2005 08:21:39 +0000
parents 9e84d106ec19
children c96b326b90ba
comparison
equal deleted inserted replaced
1180:bdcb8bb4c831 1181:49d3efec6651
115 ImageSequence yuv_seq; 115 ImageSequence yuv_seq;
116 PlanarPixmapInfoYUV420 *yuv_pixmap; 116 PlanarPixmapInfoYUV420 *yuv_pixmap;
117 Sint16 yuv_width, yuv_height; 117 Sint16 yuv_width, yuv_height;
118 CGrafPtr yuv_port; 118 CGrafPtr yuv_port;
119 119
120 CFBundleRef opengl_bundle; /* dynamically loaded OpenGL library. */
120 } SDL_PrivateVideoData; 121 } SDL_PrivateVideoData;
121 122
122 #define _THIS SDL_VideoDevice *this 123 #define _THIS SDL_VideoDevice *this
123 #define display_id (this->hidden->display) 124 #define display_id (this->hidden->display)
124 #define mode (this->hidden->mode) 125 #define mode (this->hidden->mode)
152 #define sem1 (this->hidden->sem1) 153 #define sem1 (this->hidden->sem1)
153 #define sem2 (this->hidden->sem2) 154 #define sem2 (this->hidden->sem2)
154 #define current_buffer (this->hidden->current_buffer) 155 #define current_buffer (this->hidden->current_buffer)
155 #define quit_thread (this->hidden->quit_thread) 156 #define quit_thread (this->hidden->quit_thread)
156 #define system_version (this->hidden->system_version) 157 #define system_version (this->hidden->system_version)
158 #define opengl_bundle (this->hidden->opengl_bundle)
157 159
158 /* grab states - the input is in one of these states */ 160 /* grab states - the input is in one of these states */
159 enum { 161 enum {
160 QZ_UNGRABBED = 0, 162 QZ_UNGRABBED = 0,
161 QZ_VISIBLE_GRAB, 163 QZ_VISIBLE_GRAB,