Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2013-10-31 21:52:45
Size: 1585
Comment: Added page for SDL_RenderGetLogicalSize( ) using content from header.
Revision 2 as of 2014-03-02 16:54:27
Size: 1458
Editor: Soryy708
Comment: Added a remark about edge-case when SDL_Renderer never had SDL_RenderSetLogicalSize called
Deletions are marked like this. Additions are marked like this.
Line 39: Line 39:
''You can add useful comments here''

##Leave this section as-is unless you have a remark to put in. In that case, replace ''You can add useful comments here'' with your remark(s) following the Style Guide instructions. Leave the rest of the markup alone and delete this comment.
If this function is called on an SDL_Renderer who never had it's logical size set by [[SDL_RenderSetLogicalSize]], this function sets both 'w' and 'h' to 0.

DRAFT

SDL_RenderGetLogicalSize

Use this function to get device independent resolution for rendering.

Syntax

void SDL_RenderGetLogicalSize(SDL_Renderer* renderer,
                              int*          w,
                              int*          h)

Function Parameters

renderer

a rendering context

w

an int to be filled with the width

h

an int to be filled with the height

Code Examples

You can add your code example here

Remarks

If this function is called on an SDL_Renderer who never had it's logical size set by SDL_RenderSetLogicalSize, this function sets both 'w' and 'h' to 0.

Version

This function is available since SDL 2.0.0.


CategoryAPI, CategoryRender

None: SDL_RenderGetLogicalSize (last edited 2014-03-04 22:40:46 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit