DRAFT |
SDL_RenderSetLogicalSize
Use this function to set a device independent resolution for rendering.
Contents
Syntax
int SDL_RenderSetLogicalSize(SDL_Renderer* renderer,
int w,
int h)
Function Parameters
renderer |
the renderer for which resolution should be set |
w |
the width of the logical resolution |
h |
the height of the logical resolution |
Return Value
Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
You can add useful comments here
Version
This function is available since SDL 2.0.0.