Wiki Page Content

DRAFT

SDL_RenderSetLogicalSize

Use this function to set a device independent resolution for rendering.

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.


CategoryAPI, CategoryRender

None: SDL_RenderSetLogicalSize (last edited 2013-10-26 14:23:51 by PhilippWiesemann)

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