include/SDL_render.h
changeset 10039 56c514efb1fa
parent 9998 f67cf37e9cd4
child 10408 d78b187845d6
     1.1 --- a/include/SDL_render.h	Thu Jan 07 14:02:37 2016 -0500
     1.2 +++ b/include/SDL_render.h	Tue Jan 05 16:39:18 2016 -0500
     1.3 @@ -500,6 +500,30 @@
     1.4  extern DECLSPEC void SDLCALL SDL_RenderGetLogicalSize(SDL_Renderer * renderer, int *w, int *h);
     1.5  
     1.6  /**
     1.7 + *  \brief Set whether to force integer scales for resolution-independent rendering
     1.8 + *
     1.9 + *  \param renderer The renderer for which integer scaling should be set.
    1.10 + *  \param enable   Enable or disable integer scaling
    1.11 + *
    1.12 + *  This function restricts the logical viewport to integer values - that is, when
    1.13 + *  a resolution is between two multiples of a logical size, the viewport size is
    1.14 + *  rounded down to the lower multiple.
    1.15 + *
    1.16 + *  \sa SDL_RenderSetLogicalSize()
    1.17 + */
    1.18 +extern DECLSPEC int SDLCALL SDL_RenderSetIntegerScale(SDL_Renderer * renderer,
    1.19 +                                                      SDL_bool enable);
    1.20 +
    1.21 +/**
    1.22 + *  \brief Get whether integer scales are forced for resolution-independent rendering
    1.23 + *
    1.24 + *  \param renderer The renderer from which integer scaling should be queried.
    1.25 + *
    1.26 + *  \sa SDL_RenderSetIntegerScale()
    1.27 + */
    1.28 +extern DECLSPEC SDL_bool SDLCALL SDL_RenderGetIntegerScale(SDL_Renderer * renderer);
    1.29 +
    1.30 +/**
    1.31   *  \brief Set the drawing area for rendering on the current target.
    1.32   *
    1.33   *  \param renderer The renderer for which the drawing area should be set.