include/SDL_video.h
changeset 5145 2f44e6969a59
parent 5143 b52793134276
child 5149 be02be2ea897
     1.1 --- a/include/SDL_video.h	Tue Feb 01 12:54:27 2011 -0800
     1.2 +++ b/include/SDL_video.h	Tue Feb 01 15:02:21 2011 -0800
     1.3 @@ -32,7 +32,6 @@
     1.4  #include "SDL_stdinc.h"
     1.5  #include "SDL_pixels.h"
     1.6  #include "SDL_rect.h"
     1.7 -#include "SDL_blendmode.h"
     1.8  #include "SDL_surface.h"
     1.9  
    1.10  #include "begin_code.h"
    1.11 @@ -147,55 +146,6 @@
    1.12  } SDL_WindowEventID;
    1.13  
    1.14  /**
    1.15 - *  \brief Flags used when creating a rendering context
    1.16 - */
    1.17 -typedef enum
    1.18 -{
    1.19 -    SDL_RENDERER_ACCELERATED = 0x00000001,      /**< The renderer uses hardware 
    1.20 -                                                     acceleration */
    1.21 -    SDL_RENDERER_PRESENTVSYNC = 0x00000002      /**< Present is synchronized 
    1.22 -                                                     with the refresh rate */
    1.23 -} SDL_RendererFlags;
    1.24 -
    1.25 -/**
    1.26 - *  \brief Information on the capabilities of a render driver or context.
    1.27 - */
    1.28 -typedef struct SDL_RendererInfo
    1.29 -{
    1.30 -    const char *name;           /**< The name of the renderer */
    1.31 -    Uint32 flags;               /**< Supported ::SDL_RendererFlags */
    1.32 -    Uint32 num_texture_formats; /**< The number of available texture formats */
    1.33 -    Uint32 texture_formats[50]; /**< The available texture formats */
    1.34 -    int max_texture_width;      /**< The maximimum texture width */
    1.35 -    int max_texture_height;     /**< The maximimum texture height */
    1.36 -} SDL_RendererInfo;
    1.37 -
    1.38 -/**
    1.39 - *  \brief The access pattern allowed for a texture.
    1.40 - */
    1.41 -typedef enum
    1.42 -{
    1.43 -    SDL_TEXTUREACCESS_STATIC,    /**< Changes rarely, not lockable */
    1.44 -    SDL_TEXTUREACCESS_STREAMING  /**< Changes frequently, lockable */
    1.45 -} SDL_TextureAccess;
    1.46 -
    1.47 -/**
    1.48 - *  \brief The texture channel modulation used in SDL_RenderCopy().
    1.49 - */
    1.50 -typedef enum
    1.51 -{
    1.52 -    SDL_TEXTUREMODULATE_NONE = 0x00000000,     /**< No modulation */
    1.53 -    SDL_TEXTUREMODULATE_COLOR = 0x00000001,    /**< srcC = srcC * color */
    1.54 -    SDL_TEXTUREMODULATE_ALPHA = 0x00000002     /**< srcA = srcA * alpha */
    1.55 -} SDL_TextureModulate;
    1.56 -
    1.57 -/**
    1.58 - *  \brief An efficient driver-specific representation of pixel data
    1.59 - */
    1.60 -struct SDL_Texture;
    1.61 -typedef struct SDL_Texture SDL_Texture;
    1.62 -
    1.63 -/**
    1.64   *  \brief An opaque handle to an OpenGL context.
    1.65   */
    1.66  typedef void *SDL_GLContext;
    1.67 @@ -690,536 +640,6 @@
    1.68   */
    1.69  extern DECLSPEC void SDLCALL SDL_DestroyWindow(SDL_Window * window);
    1.70  
    1.71 -/**
    1.72 - *  \brief Get the number of 2D rendering drivers available for the current 
    1.73 - *         display.
    1.74 - *  
    1.75 - *  A render driver is a set of code that handles rendering and texture
    1.76 - *  management on a particular display.  Normally there is only one, but
    1.77 - *  some drivers may have several available with different capabilities.
    1.78 - *  
    1.79 - *  \sa SDL_GetRenderDriverInfo()
    1.80 - *  \sa SDL_CreateRenderer()
    1.81 - */
    1.82 -extern DECLSPEC int SDLCALL SDL_GetNumRenderDrivers(void);
    1.83 -
    1.84 -/**
    1.85 - *  \brief Get information about a specific 2D rendering driver for the current 
    1.86 - *         display.
    1.87 - *  
    1.88 - *  \param index The index of the driver to query information about.
    1.89 - *  \param info  A pointer to an SDL_RendererInfo struct to be filled with 
    1.90 - *               information on the rendering driver.
    1.91 - *  
    1.92 - *  \return 0 on success, -1 if the index was out of range.
    1.93 - *  
    1.94 - *  \sa SDL_CreateRenderer()
    1.95 - */
    1.96 -extern DECLSPEC int SDLCALL SDL_GetRenderDriverInfo(int index,
    1.97 -                                                    SDL_RendererInfo * info);
    1.98 -
    1.99 -/**
   1.100 - *  \brief Create and make active a 2D rendering context for a window.
   1.101 - *  
   1.102 - *  \param window The window where rendering is displayed.
   1.103 - *  \param index    The index of the rendering driver to initialize, or -1 to 
   1.104 - *                  initialize the first one supporting the requested flags.
   1.105 - *  \param flags    ::SDL_RendererFlags.
   1.106 - *  
   1.107 - *  \return 0 on success, -1 if there was an error creating the renderer.
   1.108 - *  
   1.109 - *  \sa SDL_SelectRenderer()
   1.110 - *  \sa SDL_GetRendererInfo()
   1.111 - *  \sa SDL_DestroyRenderer()
   1.112 - */
   1.113 -extern DECLSPEC int SDLCALL SDL_CreateRenderer(SDL_Window * window,
   1.114 -                                               int index, Uint32 flags);
   1.115 -
   1.116 -/**
   1.117 - *  \brief Select the rendering context for a particular window.
   1.118 - *  
   1.119 - *  \return 0 on success, -1 if the selected window doesn't have a
   1.120 - *          rendering context.
   1.121 - */
   1.122 -extern DECLSPEC int SDLCALL SDL_SelectRenderer(SDL_Window * window);
   1.123 -
   1.124 -/**
   1.125 - *  \brief Get information about the current rendering context.
   1.126 - */
   1.127 -extern DECLSPEC int SDLCALL SDL_GetRendererInfo(SDL_RendererInfo * info);
   1.128 -
   1.129 -/**
   1.130 - *  \brief Create a texture for the current rendering context.
   1.131 - *  
   1.132 - *  \param format The format of the texture.
   1.133 - *  \param access One of the enumerated values in ::SDL_TextureAccess.
   1.134 - *  \param w      The width of the texture in pixels.
   1.135 - *  \param h      The height of the texture in pixels.
   1.136 - *  
   1.137 - *  \return The created texture is returned, or 0 if no rendering context was 
   1.138 - *          active,  the format was unsupported, or the width or height were out
   1.139 - *          of range.
   1.140 - *  
   1.141 - *  \sa SDL_QueryTexture()
   1.142 - *  \sa SDL_DestroyTexture()
   1.143 - */
   1.144 -extern DECLSPEC SDL_Texture * SDLCALL SDL_CreateTexture(Uint32 format,
   1.145 -                                                        int access, int w,
   1.146 -                                                        int h);
   1.147 -
   1.148 -/**
   1.149 - *  \brief Create a texture from an existing surface.
   1.150 - *  
   1.151 - *  \param format The format of the texture, or 0 to pick an appropriate format.
   1.152 - *  \param surface The surface containing pixel data used to fill the texture.
   1.153 - *  
   1.154 - *  \return The created texture is returned, or 0 if no rendering context was 
   1.155 - *          active,  the format was unsupported, or the surface width or height 
   1.156 - *          were out of range.
   1.157 - *  
   1.158 - *  \note The surface is not modified or freed by this function.
   1.159 - *  
   1.160 - *  \sa SDL_QueryTexture()
   1.161 - *  \sa SDL_DestroyTexture()
   1.162 - */
   1.163 -extern DECLSPEC SDL_Texture * SDLCALL SDL_CreateTextureFromSurface(Uint32
   1.164 -                                                                   format,
   1.165 -                                                                   SDL_Surface
   1.166 -                                                                   * surface);
   1.167 -
   1.168 -/**
   1.169 - *  \brief Query the attributes of a texture
   1.170 - *  
   1.171 - *  \param texture A texture to be queried.
   1.172 - *  \param format  A pointer filled in with the raw format of the texture.  The 
   1.173 - *                 actual format may differ, but pixel transfers will use this 
   1.174 - *                 format.
   1.175 - *  \param access  A pointer filled in with the actual access to the texture.
   1.176 - *  \param w       A pointer filled in with the width of the texture in pixels.
   1.177 - *  \param h       A pointer filled in with the height of the texture in pixels.
   1.178 - *  
   1.179 - *  \return 0 on success, or -1 if the texture is not valid.
   1.180 - */
   1.181 -extern DECLSPEC int SDLCALL SDL_QueryTexture(SDL_Texture * texture,
   1.182 -                                             Uint32 * format, int *access,
   1.183 -                                             int *w, int *h);
   1.184 -
   1.185 -/**
   1.186 - *  \brief Query the pixels of a texture, if the texture does not need to be 
   1.187 - *         locked for pixel access.
   1.188 - *  
   1.189 - *  \param texture A texture to be queried, which was created with 
   1.190 - *                   ::SDL_TEXTUREACCESS_STREAMING.
   1.191 - *  \param pixels    A pointer filled with a pointer to the pixels for the 
   1.192 - *                   texture.
   1.193 - *  \param pitch     A pointer filled in with the pitch of the pixel data.
   1.194 - *  
   1.195 - *  \return 0 on success, or -1 if the texture is not valid, or must be locked 
   1.196 - *          for pixel access.
   1.197 - */
   1.198 -extern DECLSPEC int SDLCALL SDL_QueryTexturePixels(SDL_Texture * texture,
   1.199 -                                                   void **pixels, int *pitch);
   1.200 -
   1.201 -/**
   1.202 - *  \brief Set the color palette of an indexed texture.
   1.203 - *  
   1.204 - *  \param texture  The texture to update.
   1.205 - *  \param colors     The array of RGB color data.
   1.206 - *  \param firstcolor The first index to update.
   1.207 - *  \param ncolors    The number of palette entries to fill with the color data.
   1.208 - *  
   1.209 - *  \return 0 on success, or -1 if the texture is not valid or not an indexed 
   1.210 - *          texture.
   1.211 - */
   1.212 -extern DECLSPEC int SDLCALL SDL_SetTexturePalette(SDL_Texture * texture,
   1.213 -                                                  const SDL_Color * colors,
   1.214 -                                                  int firstcolor,
   1.215 -                                                  int ncolors);
   1.216 -
   1.217 -/**
   1.218 - *  \brief Get the color palette from an indexed texture if it has one.
   1.219 - *  
   1.220 - *  \param texture  The texture to update.
   1.221 - *  \param colors     The array to fill with RGB color data.
   1.222 - *  \param firstcolor The first index to retrieve.
   1.223 - *  \param ncolors    The number of palette entries to retrieve.
   1.224 - *  
   1.225 - *  \return 0 on success, or -1 if the texture is not valid or not an indexed 
   1.226 - *          texture.
   1.227 - */
   1.228 -extern DECLSPEC int SDLCALL SDL_GetTexturePalette(SDL_Texture * texture,
   1.229 -                                                  SDL_Color * colors,
   1.230 -                                                  int firstcolor,
   1.231 -                                                  int ncolors);
   1.232 -
   1.233 -/**
   1.234 - *  \brief Set an additional color value used in render copy operations.
   1.235 - *  
   1.236 - *  \param texture The texture to update.
   1.237 - *  \param r       The red color value multiplied into copy operations.
   1.238 - *  \param g       The green color value multiplied into copy operations.
   1.239 - *  \param b       The blue color value multiplied into copy operations.
   1.240 - *  
   1.241 - *  \return 0 on success, or -1 if the texture is not valid or color modulation 
   1.242 - *          is not supported.
   1.243 - *  
   1.244 - *  \sa SDL_GetTextureColorMod()
   1.245 - */
   1.246 -extern DECLSPEC int SDLCALL SDL_SetTextureColorMod(SDL_Texture * texture,
   1.247 -                                                   Uint8 r, Uint8 g, Uint8 b);
   1.248 -
   1.249 -
   1.250 -/**
   1.251 - *  \brief Get the additional color value used in render copy operations.
   1.252 - *  
   1.253 - *  \param texture The texture to query.
   1.254 - *  \param r         A pointer filled in with the current red color value.
   1.255 - *  \param g         A pointer filled in with the current green color value.
   1.256 - *  \param b         A pointer filled in with the current blue color value.
   1.257 - *  
   1.258 - *  \return 0 on success, or -1 if the texture is not valid.
   1.259 - *  
   1.260 - *  \sa SDL_SetTextureColorMod()
   1.261 - */
   1.262 -extern DECLSPEC int SDLCALL SDL_GetTextureColorMod(SDL_Texture * texture,
   1.263 -                                                   Uint8 * r, Uint8 * g,
   1.264 -                                                   Uint8 * b);
   1.265 -
   1.266 -/**
   1.267 - *  \brief Set an additional alpha value used in render copy operations.
   1.268 - *  
   1.269 - *  \param texture The texture to update.
   1.270 - *  \param alpha     The alpha value multiplied into copy operations.
   1.271 - *  
   1.272 - *  \return 0 on success, or -1 if the texture is not valid or alpha modulation 
   1.273 - *          is not supported.
   1.274 - *  
   1.275 - *  \sa SDL_GetTextureAlphaMod()
   1.276 - */
   1.277 -extern DECLSPEC int SDLCALL SDL_SetTextureAlphaMod(SDL_Texture * texture,
   1.278 -                                                   Uint8 alpha);
   1.279 -
   1.280 -/**
   1.281 - *  \brief Get the additional alpha value used in render copy operations.
   1.282 - *  
   1.283 - *  \param texture The texture to query.
   1.284 - *  \param alpha     A pointer filled in with the current alpha value.
   1.285 - *  
   1.286 - *  \return 0 on success, or -1 if the texture is not valid.
   1.287 - *  
   1.288 - *  \sa SDL_SetTextureAlphaMod()
   1.289 - */
   1.290 -extern DECLSPEC int SDLCALL SDL_GetTextureAlphaMod(SDL_Texture * texture,
   1.291 -                                                   Uint8 * alpha);
   1.292 -
   1.293 -/**
   1.294 - *  \brief Set the blend mode used for texture copy operations.
   1.295 - *  
   1.296 - *  \param texture The texture to update.
   1.297 - *  \param blendMode ::SDL_BlendMode to use for texture blending.
   1.298 - *  
   1.299 - *  \return 0 on success, or -1 if the texture is not valid or the blend mode is
   1.300 - *          not supported.
   1.301 - *  
   1.302 - *  \note If the blend mode is not supported, the closest supported mode is
   1.303 - *        chosen.
   1.304 - *  
   1.305 - *  \sa SDL_GetTextureBlendMode()
   1.306 - */
   1.307 -extern DECLSPEC int SDLCALL SDL_SetTextureBlendMode(SDL_Texture * texture,
   1.308 -                                                    SDL_BlendMode blendMode);
   1.309 -
   1.310 -/**
   1.311 - *  \brief Get the blend mode used for texture copy operations.
   1.312 - *  
   1.313 - *  \param texture The texture to query.
   1.314 - *  \param blendMode A pointer filled in with the current blend mode.
   1.315 - *  
   1.316 - *  \return 0 on success, or -1 if the texture is not valid.
   1.317 - *  
   1.318 - *  \sa SDL_SetTextureBlendMode()
   1.319 - */
   1.320 -extern DECLSPEC int SDLCALL SDL_GetTextureBlendMode(SDL_Texture * texture,
   1.321 -                                                    SDL_BlendMode *blendMode);
   1.322 -
   1.323 -/**
   1.324 - *  \brief Update the given texture rectangle with new pixel data.
   1.325 - *  
   1.326 - *  \param texture The texture to update
   1.327 - *  \param rect      A pointer to the rectangle of pixels to update, or NULL to 
   1.328 - *                   update the entire texture.
   1.329 - *  \param pixels    The raw pixel data.
   1.330 - *  \param pitch     The number of bytes between rows of pixel data.
   1.331 - *  
   1.332 - *  \return 0 on success, or -1 if the texture is not valid.
   1.333 - *  
   1.334 - *  \note This is a fairly slow function.
   1.335 - */
   1.336 -extern DECLSPEC int SDLCALL SDL_UpdateTexture(SDL_Texture * texture,
   1.337 -                                              const SDL_Rect * rect,
   1.338 -                                              const void *pixels, int pitch);
   1.339 -
   1.340 -/**
   1.341 - *  \brief Lock a portion of the texture for pixel access.
   1.342 - *  
   1.343 - *  \param texture The texture to lock for access, which was created with 
   1.344 - *                   ::SDL_TEXTUREACCESS_STREAMING.
   1.345 - *  \param rect      A pointer to the rectangle to lock for access. If the rect 
   1.346 - *                   is NULL, the entire texture will be locked.
   1.347 - *  \param markDirty If this is nonzero, the locked area will be marked dirty 
   1.348 - *                   when the texture is unlocked.
   1.349 - *  \param pixels    This is filled in with a pointer to the locked pixels, 
   1.350 - *                   appropriately offset by the locked area.
   1.351 - *  \param pitch     This is filled in with the pitch of the locked pixels.
   1.352 - *  
   1.353 - *  \return 0 on success, or -1 if the texture is not valid or was created with 
   1.354 - *          ::SDL_TEXTUREACCESS_STATIC.
   1.355 - *  
   1.356 - *  \sa SDL_DirtyTexture()
   1.357 - *  \sa SDL_UnlockTexture()
   1.358 - */
   1.359 -extern DECLSPEC int SDLCALL SDL_LockTexture(SDL_Texture * texture,
   1.360 -                                            const SDL_Rect * rect,
   1.361 -                                            int markDirty, void **pixels,
   1.362 -                                            int *pitch);
   1.363 -
   1.364 -/**
   1.365 - *  \brief Unlock a texture, uploading the changes to video memory, if needed.
   1.366 - *  
   1.367 - *  \sa SDL_LockTexture()
   1.368 - *  \sa SDL_DirtyTexture()
   1.369 - */
   1.370 -extern DECLSPEC void SDLCALL SDL_UnlockTexture(SDL_Texture * texture);
   1.371 -
   1.372 -/**
   1.373 - *  \brief Mark the specified rectangles of the texture as dirty.
   1.374 - *  
   1.375 - *  \param texture The texture to mark dirty, which was created with 
   1.376 - *                   ::SDL_TEXTUREACCESS_STREAMING.
   1.377 - *  \param numrects  The number of rectangles pointed to by rects.
   1.378 - *  \param rects     The pointer to an array of dirty rectangles.
   1.379 - *  
   1.380 - *  \sa SDL_LockTexture()
   1.381 - *  \sa SDL_UnlockTexture()
   1.382 - */
   1.383 -extern DECLSPEC void SDLCALL SDL_DirtyTexture(SDL_Texture * texture,
   1.384 -                                              int numrects,
   1.385 -                                              const SDL_Rect * rects);
   1.386 -
   1.387 -/**
   1.388 - *  \brief Set the color used for drawing operations (Fill and Line).
   1.389 - *  
   1.390 - *  \param r The red value used to draw on the rendering target.
   1.391 - *  \param g The green value used to draw on the rendering target.
   1.392 - *  \param b The blue value used to draw on the rendering target.
   1.393 - *  \param a The alpha value used to draw on the rendering target, usually 
   1.394 - *           ::SDL_ALPHA_OPAQUE (255).
   1.395 - *  
   1.396 - *  \return 0 on success, or -1 if there is no rendering context current.
   1.397 - */
   1.398 -extern DECLSPEC int SDL_SetRenderDrawColor(Uint8 r, Uint8 g, Uint8 b,
   1.399 -                                           Uint8 a);
   1.400 -
   1.401 -/**
   1.402 - *  \brief Get the color used for drawing operations (Fill and Line).
   1.403 - *  
   1.404 - *  \param r A pointer to the red value used to draw on the rendering target.
   1.405 - *  \param g A pointer to the green value used to draw on the rendering target.
   1.406 - *  \param b A pointer to the blue value used to draw on the rendering target.
   1.407 - *  \param a A pointer to the alpha value used to draw on the rendering target, 
   1.408 - *           usually ::SDL_ALPHA_OPAQUE (255).
   1.409 - *  
   1.410 - *  \return 0 on success, or -1 if there is no rendering context current.
   1.411 - */
   1.412 -extern DECLSPEC int SDL_GetRenderDrawColor(Uint8 * r, Uint8 * g, Uint8 * b,
   1.413 -                                           Uint8 * a);
   1.414 -
   1.415 -/**
   1.416 - *  \brief Set the blend mode used for drawing operations (Fill and Line).
   1.417 - *  
   1.418 - *  \param blendMode ::SDL_BlendMode to use for blending.
   1.419 - *  
   1.420 - *  \return 0 on success, or -1 if there is no rendering context current.
   1.421 - *  
   1.422 - *  \note If the blend mode is not supported, the closest supported mode is 
   1.423 - *        chosen.
   1.424 - *  
   1.425 - *  \sa SDL_GetRenderDrawBlendMode()
   1.426 - */
   1.427 -extern DECLSPEC int SDLCALL SDL_SetRenderDrawBlendMode(SDL_BlendMode blendMode);
   1.428 -
   1.429 -/**
   1.430 - *  \brief Get the blend mode used for drawing operations.
   1.431 - *  
   1.432 - *  \param blendMode A pointer filled in with the current blend mode.
   1.433 - *  
   1.434 - *  \return 0 on success, or -1 if there is no rendering context current.
   1.435 - *  
   1.436 - *  \sa SDL_SetRenderDrawBlendMode()
   1.437 - */
   1.438 -extern DECLSPEC int SDLCALL SDL_GetRenderDrawBlendMode(SDL_BlendMode *blendMode);
   1.439 -
   1.440 -/**
   1.441 - *  \brief Clear the current rendering target with the drawing color
   1.442 - */
   1.443 -extern DECLSPEC int SDLCALL SDL_RenderClear(void);
   1.444 -
   1.445 -/**
   1.446 - *  \brief Draw a point on the current rendering target.
   1.447 - *  
   1.448 - *  \param x The x coordinate of the point.
   1.449 - *  \param y The y coordinate of the point.
   1.450 - *  
   1.451 - *  \return 0 on success, or -1 if there is no rendering context current.
   1.452 - */
   1.453 -extern DECLSPEC int SDLCALL SDL_RenderDrawPoint(int x, int y);
   1.454 -
   1.455 -/**
   1.456 - *  \brief Draw multiple points on the current rendering target.
   1.457 - *  
   1.458 - *  \param points The points to draw
   1.459 - *  \param count The number of points to draw
   1.460 - *  
   1.461 - *  \return 0 on success, or -1 if there is no rendering context current.
   1.462 - */
   1.463 -extern DECLSPEC int SDLCALL SDL_RenderDrawPoints(const SDL_Point * points,
   1.464 -                                                 int count);
   1.465 -
   1.466 -/**
   1.467 - *  \brief Draw a line on the current rendering target.
   1.468 - *  
   1.469 - *  \param x1 The x coordinate of the start point.
   1.470 - *  \param y1 The y coordinate of the start point.
   1.471 - *  \param x2 The x coordinate of the end point.
   1.472 - *  \param y2 The y coordinate of the end point.
   1.473 - *  
   1.474 - *  \return 0 on success, or -1 if there is no rendering context current.
   1.475 - */
   1.476 -extern DECLSPEC int SDLCALL SDL_RenderDrawLine(int x1, int y1, int x2, int y2);
   1.477 -
   1.478 -/**
   1.479 - *  \brief Draw a series of connected lines on the current rendering target.
   1.480 - *  
   1.481 - *  \param points The points along the lines
   1.482 - *  \param count The number of points, drawing count-1 lines
   1.483 - *  
   1.484 - *  \return 0 on success, or -1 if there is no rendering context current.
   1.485 - */
   1.486 -extern DECLSPEC int SDLCALL SDL_RenderDrawLines(const SDL_Point * points,
   1.487 -                                                int count);
   1.488 -
   1.489 -/**
   1.490 - *  \brief Draw a rectangle on the current rendering target.
   1.491 - *  
   1.492 - *  \param rect A pointer to the destination rectangle, or NULL to outline the entire rendering target.
   1.493 - *  
   1.494 - *  \return 0 on success, or -1 if there is no rendering context current.
   1.495 - */
   1.496 -extern DECLSPEC int SDLCALL SDL_RenderDrawRect(const SDL_Rect * rect);
   1.497 -
   1.498 -/**
   1.499 - *  \brief Draw some number of rectangles on the current rendering target.
   1.500 - *  
   1.501 - *  \param rects A pointer to an array of destination rectangles.
   1.502 - *  \param count The number of rectangles.
   1.503 - *  
   1.504 - *  \return 0 on success, or -1 if there is no rendering context current.
   1.505 - */
   1.506 -extern DECLSPEC int SDLCALL SDL_RenderDrawRects(const SDL_Rect ** rects, int count);
   1.507 -
   1.508 -/**
   1.509 - *  \brief Fill a rectangle on the current rendering target with the drawing color.
   1.510 - *  
   1.511 - *  \param rect A pointer to the destination rectangle, or NULL for the entire 
   1.512 - *              rendering target.
   1.513 - *  
   1.514 - *  \return 0 on success, or -1 if there is no rendering context current.
   1.515 - */
   1.516 -extern DECLSPEC int SDLCALL SDL_RenderFillRect(const SDL_Rect * rect);
   1.517 -
   1.518 -/**
   1.519 - *  \brief Fill some number of rectangles on the current rendering target with the drawing color.
   1.520 - *  
   1.521 - *  \param rects A pointer to an array of destination rectangles.
   1.522 - *  \param count The number of rectangles.
   1.523 - *  
   1.524 - *  \return 0 on success, or -1 if there is no rendering context current.
   1.525 - */
   1.526 -extern DECLSPEC int SDLCALL SDL_RenderFillRects(const SDL_Rect ** rect, int count);
   1.527 -
   1.528 -/**
   1.529 - *  \brief Copy a portion of the texture to the current rendering target.
   1.530 - *  
   1.531 - *  \param texture The source texture.
   1.532 - *  \param srcrect   A pointer to the source rectangle, or NULL for the entire 
   1.533 - *                   texture.
   1.534 - *  \param dstrect   A pointer to the destination rectangle, or NULL for the 
   1.535 - *                   entire rendering target.
   1.536 - *  
   1.537 - *  \return 0 on success, or -1 if there is no rendering context current, or the
   1.538 - *          driver doesn't support the requested operation.
   1.539 - */
   1.540 -extern DECLSPEC int SDLCALL SDL_RenderCopy(SDL_Texture * texture,
   1.541 -                                           const SDL_Rect * srcrect,
   1.542 -                                           const SDL_Rect * dstrect);
   1.543 -
   1.544 -/**
   1.545 - *  \brief Read pixels from the current rendering target.
   1.546 - *  
   1.547 - *  \param rect   A pointer to the rectangle to read, or NULL for the entire 
   1.548 - *                render target.
   1.549 - *  \param format The desired format of the pixel data, or 0 to use the format
   1.550 - *                of the rendering target
   1.551 - *  \param pixels A pointer to be filled in with the pixel data
   1.552 - *  \param pitch  The pitch of the pixels parameter.
   1.553 - *  
   1.554 - *  \return 0 on success, or -1 if pixel reading is not supported.
   1.555 - *  
   1.556 - *  \warning This is a very slow operation, and should not be used frequently.
   1.557 - */
   1.558 -extern DECLSPEC int SDLCALL SDL_RenderReadPixels(const SDL_Rect * rect,
   1.559 -                                                 Uint32 format,
   1.560 -                                                 void *pixels, int pitch);
   1.561 -
   1.562 -/**
   1.563 - *  \brief Write pixels to the current rendering target.
   1.564 - *  
   1.565 - *  \param rect   A pointer to the rectangle to write, or NULL for the entire 
   1.566 - *                render target.
   1.567 - *  \param format The format of the pixel data, or 0 to use the format
   1.568 - *                of the rendering target
   1.569 - *  \param pixels A pointer to the pixel data to write.
   1.570 - *  \param pitch  The pitch of the pixels parameter.
   1.571 - *  
   1.572 - *  \return 0 on success, or -1 if pixel writing is not supported.
   1.573 - *  
   1.574 - *  \warning This is a very slow operation, and should not be used frequently.
   1.575 - */
   1.576 -extern DECLSPEC int SDLCALL SDL_RenderWritePixels(const SDL_Rect * rect,
   1.577 -                                                  Uint32 format,
   1.578 -                                                  const void *pixels,
   1.579 -                                                  int pitch);
   1.580 -
   1.581 -/**
   1.582 - *  \brief Update the screen with rendering performed.
   1.583 - */
   1.584 -extern DECLSPEC void SDLCALL SDL_RenderPresent(void);
   1.585 -
   1.586 -/**
   1.587 - *  \brief Destroy the specified texture.
   1.588 - *  
   1.589 - *  \sa SDL_CreateTexture()
   1.590 - *  \sa SDL_CreateTextureFromSurface()
   1.591 - */
   1.592 -extern DECLSPEC void SDLCALL SDL_DestroyTexture(SDL_Texture * texture);
   1.593 -
   1.594 -/**
   1.595 - *  \brief Destroy the rendering context for a window and free associated
   1.596 - *         textures.
   1.597 - *  
   1.598 - *  \sa SDL_CreateRenderer()
   1.599 - */
   1.600 -extern DECLSPEC void SDLCALL SDL_DestroyRenderer(SDL_Window * window);
   1.601  
   1.602  /**
   1.603   *  \brief Returns whether the screensaver is currently enabled (default on).