include/SDL_render.h
changeset 6528 e978048ced60
parent 6493 6801ced90deb
child 6530 ba5de88eab60
     1.1 --- a/include/SDL_render.h	Mon Oct 01 00:56:58 2012 -0700
     1.2 +++ b/include/SDL_render.h	Mon Oct 01 20:59:33 2012 -0700
     1.3 @@ -437,6 +437,32 @@
     1.4                                                     SDL_Rect * rect);
     1.5  
     1.6  /**
     1.7 + *  \brief Set the drawing scale for rendering on the current target.
     1.8 + *
     1.9 + *  \param scaleX The horizontal scaling factor
    1.10 + *  \param scaleY The vertical scaling factor
    1.11 + *
    1.12 + *  The drawing coordinates are scaled by the x/y scaling factors
    1.13 + *  before they are used by the renderer.  This allows resolution
    1.14 + *  independent drawing with a single coordinate system.
    1.15 + *
    1.16 + *  \note If this results in scaling or subpixel drawing by the 
    1.17 + *        rendering backend, it will be handled using the appropriate
    1.18 + *        quality hints.  For best results use integer scaling factors.
    1.19 + */
    1.20 +extern DECLSPEC int SDLCALL SDL_RenderSetScale(SDL_Renderer * renderer,
    1.21 +                                               float scaleX, float scaleY);
    1.22 +
    1.23 +/**
    1.24 + *  \brief Get the drawing scale for the current target.
    1.25 + *
    1.26 + *  \param scaleX A pointer filled in with the horizontal scaling factor
    1.27 + *  \param scaleY A pointer filled in with the vertical scaling factor
    1.28 + */
    1.29 +extern DECLSPEC void SDLCALL SDL_RenderGetScale(SDL_Renderer * renderer,
    1.30 +                                               float *scaleX, float *scaleY);
    1.31 +
    1.32 +/**
    1.33   *  \brief Set the color used for drawing operations (Rect, Line and Clear).
    1.34   *  
    1.35   *  \param r The red value used to draw on the rendering target.