comparison include/SDL_video.h @ 1965:a788656ca29a

SDL constants are all uppercase.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 05 Aug 2006 17:09:42 +0000
parents 2590b68531ef
children 6472256c21eb
comparison
equal deleted inserted replaced
1964:071b6598d48f 1965:a788656ca29a
168 * 168 *
169 * \brief Flags used when initializing a render manager. 169 * \brief Flags used when initializing a render manager.
170 */ 170 */
171 typedef enum 171 typedef enum
172 { 172 {
173 SDL_Renderer_SingleBuffer = 0x00000001, /**< Render directly to the window, if possible */ 173 SDL_RENDERER_SINGLEBUFFER = 0x00000001, /**< Render directly to the window, if possible */
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 *
201 * 201 *
202 * \brief The access pattern allowed for a texture 202 * \brief The access pattern allowed for a texture
203 */ 203 */
204 typedef enum 204 typedef enum
205 { 205 {
206 SDL_TextureAccess_Local, /**< Lockable system memory */ 206 SDL_TEXTUREACCESS_LOCAL, /**< Lockable system memory */
207 SDL_TextureAccess_Remote, /**< Unlockable video memory */ 207 SDL_TEXTUREACCESS_REMOTE, /**< Unlockable video memory */
208 } SDL_TextureAccess; 208 } SDL_TextureAccess;
209 209
210 /** 210 /**
211 * \enum SDL_TextureBlendMode 211 * \enum SDL_TextureBlendMode
212 * 212 *
213 * \brief The blend mode used in SDL_RenderCopy() 213 * \brief The blend mode used in SDL_RenderCopy()
214 */ 214 */
215 typedef enum 215 typedef enum
216 { 216 {
217 SDL_TextureBlendMode_None = 0x00000000, /**< No blending */ 217 SDL_TEXTUREBLENDMODE_NONE = 0x00000000, /**< No blending */
218 SDL_TextureBlendMode_Mask = 0x00000001, /**< dst = A ? src : dst (alpha is mask) */ 218 SDL_TEXTUREBLENDMODE_MASK = 0x00000001, /**< dst = A ? src : dst (alpha is mask) */
219 SDL_TextureBlendMode_Blend = 0x00000002, /**< dst = (src * A) + (dst * (1-A)) */ 219 SDL_TEXTUREBLENDMODE_BLEND = 0x00000002, /**< dst = (src * A) + (dst * (1-A)) */
220 SDL_TextureBlendMode_Add = 0x00000004, /**< dst = (src * A) + dst */ 220 SDL_TEXTUREBLENDMODE_ADD = 0x00000004, /**< dst = (src * A) + dst */
221 SDL_TextureBlendMode_Mod = 0x00000008, /**< dst = src * dst */ 221 SDL_TEXTUREBLENDMODE_MOD = 0x00000008, /**< dst = src * dst */
222 } SDL_TextureBlendMode; 222 } SDL_TextureBlendMode;
223 223
224 /** 224 /**
225 * \enum SDL_TextureScaleMode 225 * \enum SDL_TextureScaleMode
226 * 226 *
227 * \brief The scale mode used in SDL_RenderCopy() 227 * \brief The scale mode used in SDL_RenderCopy()
228 */ 228 */
229 typedef enum 229 typedef enum
230 { 230 {
231 SDL_TextureScaleMode_None = 0x00000000, /**< No scaling, rectangles must match dimensions */ 231 SDL_TEXTURESCALEMODE_NONE = 0x00000000, /**< No scaling, rectangles must match dimensions */
232 SDL_TextureScaleMode_Fast = 0x00000001, /**< Point sampling or equivalent algorithm */ 232 SDL_TEXTURESCALEMODE_FAST = 0x00000001, /**< Point sampling or equivalent algorithm */
233 SDL_TextureScaleMode_Slow = 0x00000002, /**< Linear filtering or equivalent algorithm */ 233 SDL_TEXTURESCALEMODE_SLOW = 0x00000002, /**< Linear filtering or equivalent algorithm */
234 SDL_TextureScaleMode_Best = 0x00000004, /**< Bicubic filtering or equivalent algorithm */ 234 SDL_TEXTURESCALEMODE_BEST = 0x00000004, /**< Bicubic filtering or equivalent algorithm */
235 } SDL_TextureScaleMode; 235 } SDL_TextureScaleMode;
236 236
237 /** 237 /**
238 * \typedef SDL_TextureID 238 * \typedef SDL_TextureID
239 * 239 *