comparison include/SDL_video.h @ 2208:b03710fb0333

Fixed bug #467 Remove trailing commas from enums
author Sam Lantinga <slouken@libsdl.org>
date Sun, 22 Jul 2007 13:22:47 +0000
parents 55c7932d1fdb
children 926294b2bb4e
comparison
equal deleted inserted replaced
2207:d63e9f5944ae 2208:b03710fb0333
124 SDL_WINDOW_RESIZABLE = 0x00000010, /**< window can be resized */ 124 SDL_WINDOW_RESIZABLE = 0x00000010, /**< window can be resized */
125 SDL_WINDOW_MINIMIZED = 0x00000020, /**< minimized */ 125 SDL_WINDOW_MINIMIZED = 0x00000020, /**< minimized */
126 SDL_WINDOW_MAXIMIZED = 0x00000040, /**< maximized */ 126 SDL_WINDOW_MAXIMIZED = 0x00000040, /**< maximized */
127 SDL_WINDOW_INPUT_GRABBED = 0x00000100, /**< window has grabbed input focus */ 127 SDL_WINDOW_INPUT_GRABBED = 0x00000100, /**< window has grabbed input focus */
128 SDL_WINDOW_INPUT_FOCUS = 0x00000200, /**< window has input focus */ 128 SDL_WINDOW_INPUT_FOCUS = 0x00000200, /**< window has input focus */
129 SDL_WINDOW_MOUSE_FOCUS = 0x00000400, /**< window has mouse focus */ 129 SDL_WINDOW_MOUSE_FOCUS = 0x00000400 /**< window has mouse focus */
130 } SDL_WindowFlags; 130 } SDL_WindowFlags;
131 131
132 /** 132 /**
133 * \def SDL_WINDOWPOS_UNDEFINED 133 * \def SDL_WINDOWPOS_UNDEFINED
134 * \brief Used to indicate that you don't care what the window position is. 134 * \brief Used to indicate that you don't care what the window position is.
158 SDL_WINDOWEVENT_RESTORED, /**< Window has been restored to normal size and position */ 158 SDL_WINDOWEVENT_RESTORED, /**< Window has been restored to normal size and position */
159 SDL_WINDOWEVENT_ENTER, /**< The window has gained mouse focus */ 159 SDL_WINDOWEVENT_ENTER, /**< The window has gained mouse focus */
160 SDL_WINDOWEVENT_LEAVE, /**< The window has lost mouse focus */ 160 SDL_WINDOWEVENT_LEAVE, /**< The window has lost mouse focus */
161 SDL_WINDOWEVENT_FOCUS_GAINED, /**< The window has gained keyboard focus */ 161 SDL_WINDOWEVENT_FOCUS_GAINED, /**< The window has gained keyboard focus */
162 SDL_WINDOWEVENT_FOCUS_LOST, /**< The window has lost keyboard focus */ 162 SDL_WINDOWEVENT_FOCUS_LOST, /**< The window has lost keyboard focus */
163 SDL_WINDOWEVENT_CLOSE, /**< The window manager requests that the window be closed */ 163 SDL_WINDOWEVENT_CLOSE /**< The window manager requests that the window be closed */
164 } SDL_WindowEventID; 164 } SDL_WindowEventID;
165 165
166 /** 166 /**
167 * \enum SDL_RendererFlags 167 * \enum SDL_RendererFlags
168 * 168 *
174 SDL_RENDERER_PRESENTCOPY = 0x00000002, /**< Present uses a copy from back buffer to the front buffer */ 174 SDL_RENDERER_PRESENTCOPY = 0x00000002, /**< Present uses a copy from back buffer to the front buffer */
175 SDL_RENDERER_PRESENTFLIP2 = 0x00000004, /**< Present uses a flip, swapping back buffer and front buffer */ 175 SDL_RENDERER_PRESENTFLIP2 = 0x00000004, /**< Present uses a flip, swapping back buffer and front buffer */
176 SDL_RENDERER_PRESENTFLIP3 = 0x00000008, /**< Present uses a flip, rotating between two back buffers and a front buffer */ 176 SDL_RENDERER_PRESENTFLIP3 = 0x00000008, /**< Present uses a flip, rotating between two back buffers and a front buffer */
177 SDL_RENDERER_PRESENTDISCARD = 0x00000010, /**< Present leaves the contents of the backbuffer undefined */ 177 SDL_RENDERER_PRESENTDISCARD = 0x00000010, /**< Present leaves the contents of the backbuffer undefined */
178 SDL_RENDERER_PRESENTVSYNC = 0x00000020, /**< Present is synchronized with the refresh rate */ 178 SDL_RENDERER_PRESENTVSYNC = 0x00000020, /**< Present is synchronized with the refresh rate */
179 SDL_RENDERER_ACCELERATED = 0x00000040, /**< The renderer uses hardware acceleration */ 179 SDL_RENDERER_ACCELERATED = 0x00000040 /**< The renderer uses hardware acceleration */
180 } SDL_RendererFlags; 180 } SDL_RendererFlags;
181 181
182 /** 182 /**
183 * \struct SDL_RendererInfo 183 * \struct SDL_RendererInfo
184 * 184 *
203 * \brief The access pattern allowed for a texture 203 * \brief The access pattern allowed for a texture
204 */ 204 */
205 typedef enum 205 typedef enum
206 { 206 {
207 SDL_TEXTUREACCESS_LOCAL, /**< Lockable system memory */ 207 SDL_TEXTUREACCESS_LOCAL, /**< Lockable system memory */
208 SDL_TEXTUREACCESS_REMOTE, /**< Unlockable video memory */ 208 SDL_TEXTUREACCESS_REMOTE /**< Unlockable video memory */
209 } SDL_TextureAccess; 209 } SDL_TextureAccess;
210 210
211 /** 211 /**
212 * \enum SDL_TextureModulate 212 * \enum SDL_TextureModulate
213 * 213 *
215 */ 215 */
216 typedef enum 216 typedef enum
217 { 217 {
218 SDL_TEXTUREMODULATE_NONE = 0x00000000, /**< No modulation */ 218 SDL_TEXTUREMODULATE_NONE = 0x00000000, /**< No modulation */
219 SDL_TEXTUREMODULATE_COLOR = 0x00000001, /**< srcC = srcC * color */ 219 SDL_TEXTUREMODULATE_COLOR = 0x00000001, /**< srcC = srcC * color */
220 SDL_TEXTUREMODULATE_ALPHA = 0x00000002, /**< srcA = srcA * alpha */ 220 SDL_TEXTUREMODULATE_ALPHA = 0x00000002 /**< srcA = srcA * alpha */
221 } SDL_TextureModulate; 221 } SDL_TextureModulate;
222 222
223 /** 223 /**
224 * \enum SDL_TextureBlendMode 224 * \enum SDL_TextureBlendMode
225 * 225 *
229 { 229 {
230 SDL_TEXTUREBLENDMODE_NONE = 0x00000000, /**< No blending */ 230 SDL_TEXTUREBLENDMODE_NONE = 0x00000000, /**< No blending */
231 SDL_TEXTUREBLENDMODE_MASK = 0x00000001, /**< dst = A ? src : dst (alpha is mask) */ 231 SDL_TEXTUREBLENDMODE_MASK = 0x00000001, /**< dst = A ? src : dst (alpha is mask) */
232 SDL_TEXTUREBLENDMODE_BLEND = 0x00000002, /**< dst = (src * A) + (dst * (1-A)) */ 232 SDL_TEXTUREBLENDMODE_BLEND = 0x00000002, /**< dst = (src * A) + (dst * (1-A)) */
233 SDL_TEXTUREBLENDMODE_ADD = 0x00000004, /**< dst = (src * A) + dst */ 233 SDL_TEXTUREBLENDMODE_ADD = 0x00000004, /**< dst = (src * A) + dst */
234 SDL_TEXTUREBLENDMODE_MOD = 0x00000008, /**< dst = src * dst */ 234 SDL_TEXTUREBLENDMODE_MOD = 0x00000008 /**< dst = src * dst */
235 } SDL_TextureBlendMode; 235 } SDL_TextureBlendMode;
236 236
237 /** 237 /**
238 * \enum SDL_TextureScaleMode 238 * \enum SDL_TextureScaleMode
239 * 239 *
242 typedef enum 242 typedef enum
243 { 243 {
244 SDL_TEXTURESCALEMODE_NONE = 0x00000000, /**< No scaling, rectangles must match dimensions */ 244 SDL_TEXTURESCALEMODE_NONE = 0x00000000, /**< No scaling, rectangles must match dimensions */
245 SDL_TEXTURESCALEMODE_FAST = 0x00000001, /**< Point sampling or equivalent algorithm */ 245 SDL_TEXTURESCALEMODE_FAST = 0x00000001, /**< Point sampling or equivalent algorithm */
246 SDL_TEXTURESCALEMODE_SLOW = 0x00000002, /**< Linear filtering or equivalent algorithm */ 246 SDL_TEXTURESCALEMODE_SLOW = 0x00000002, /**< Linear filtering or equivalent algorithm */
247 SDL_TEXTURESCALEMODE_BEST = 0x00000004, /**< Bicubic filtering or equivalent algorithm */ 247 SDL_TEXTURESCALEMODE_BEST = 0x00000004 /**< Bicubic filtering or equivalent algorithm */
248 } SDL_TextureScaleMode; 248 } SDL_TextureScaleMode;
249 249
250 /** 250 /**
251 * \typedef SDL_TextureID 251 * \typedef SDL_TextureID
252 * 252 *