Wiki Page Content

Revision 2 as of 2014-03-02 16:54:27

Clear message

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 it's 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

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