Wiki Page Content

DRAFT

SDL_RenderGetLogicalSize

Use this function to get device independent resolution for rendering.

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.


CategoryAPI, CategoryRender

None: SDL_RenderGetLogicalSize (last edited 2014-03-04 22:40:46 by PhilippWiesemann)

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