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.