Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2014-03-02 16:54:27
Size: 1458
Editor: Soryy708
Comment: Added a remark about edge-case when SDL_Renderer never had SDL_RenderSetLogicalSize called
Revision 3 as of 2014-03-04 22:40:46
Size: 1467
Comment: Fixed typo, added () and formatting, see SGRemarks.
Deletions are marked like this. Additions are marked like this.
Line 39: Line 39:
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. 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.

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)

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