include/SDL_video.h
changeset 1907 06c27a737b7a
parent 1897 c2a27da60b18
child 1912 8d384b647307
     1.1 --- a/include/SDL_video.h	Fri Jul 14 08:24:43 2006 +0000
     1.2 +++ b/include/SDL_video.h	Sat Jul 15 09:46:36 2006 +0000
     1.3 @@ -176,9 +176,7 @@
     1.4      SDL_Renderer_PresentFlip3 = 0x00000008,     /**< Present uses a flip, rotating between two back buffers and a front buffer */
     1.5      SDL_Renderer_PresentDiscard = 0x00000010,   /**< Present leaves the contents of the backbuffer undefined */
     1.6      SDL_Renderer_PresentVSync = 0x00000020,     /**< Present is synchronized with the refresh rate */
     1.7 -    SDL_Renderer_RenderTarget = 0x00000040,     /**< The renderer can create texture render targets */
     1.8 -    SDL_Renderer_Accelerated = 0x00000080,      /**< The renderer uses hardware acceleration */
     1.9 -    SDL_Renderer_Minimal = 0x00000100,          /**< The renderer only supports the read/write pixel and present functions */
    1.10 +    SDL_Renderer_Accelerated = 0x00000040,      /**< The renderer uses hardware acceleration */
    1.11  } SDL_RendererFlags;
    1.12  
    1.13  /**
    1.14 @@ -193,7 +191,7 @@
    1.15      Uint32 blend_modes;         /**< A mask of supported blend modes */
    1.16      Uint32 scale_modes;         /**< A mask of supported scale modes */
    1.17      Uint32 num_texture_formats; /**< The number of available texture formats */
    1.18 -    Uint32 texture_formats[32]; /**< The available texture formats */
    1.19 +    Uint32 texture_formats[16]; /**< The available texture formats */
    1.20      int max_texture_width;      /**< The maximimum texture width */
    1.21      int max_texture_height;     /**< The maximimum texture height */
    1.22  } SDL_RendererInfo;
    1.23 @@ -205,9 +203,8 @@
    1.24   */
    1.25  typedef enum
    1.26  {
    1.27 -    SDL_TextureAccess_Render,   /**< Unlockable video memory, rendering allowed */
    1.28 +    SDL_TextureAccess_Local,    /**< Lockable system memory */
    1.29      SDL_TextureAccess_Remote,   /**< Unlockable video memory */
    1.30 -    SDL_TextureAccess_Local,    /**< Lockable system memory */
    1.31  } SDL_TextureAccess;
    1.32  
    1.33  /**
    1.34 @@ -836,11 +833,16 @@
    1.35  extern DECLSPEC int SDLCALL SDL_GetNumRenderers(void);
    1.36  
    1.37  /**
    1.38 - * \fn SDL_RendererInfo *SDL_GetRendererInfo(int index)
    1.39 + * \fn int SDL_GetRendererInfo(int index, SDL_RendererInfo *info)
    1.40   *
    1.41   * \brief Get information about a specific render manager on the current
    1.42   *        display.
    1.43   *
    1.44 + * \param index The index to query information about, or -1 to query the currently renderer
    1.45 + * \param info A pointer to an SDL_RendererInfo struct to be filled with information on the renderer
    1.46 + *
    1.47 + * \return 0 on success, -1 if the index was out of range
    1.48 + *
    1.49   * \sa SDL_CreateRenderer()
    1.50   */
    1.51  extern DECLSPEC int SDLCALL SDL_GetRendererInfo(int index,