|
⇤ ← Revision 1 as of 2013-10-31 21:52:45
Size: 1585
Comment: Added page for SDL_RenderGetLogicalSize( ) using content from header.
|
Size: 1458
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.
Contents
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.
