|
Size: 1458
Comment: Added a remark about edge-case when SDL_Renderer never had SDL_RenderSetLogicalSize called
|
← Revision 3 as of 2014-03-04 22:40:46 ⇥
Size: 1467
Comment: Fixed typo, added () and formatting, see SGRemarks.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 39: | Line 39: |
| 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. | If this function is called on an SDL_Renderer who never had its 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 its 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.
