The rendering context.
The x coordinate in window coordinates.
The y coordinate in window coordinates.
A pointer filled with the x coordinate in render coordinates.
A pointer filled with the y coordinate in render coordinates.
true on success or false on failure; call SDL_GetError for more information.
Threadsafety: This function should only be called on the main thread.
Page generated by adrdox
Get a point in render coordinates when given a point in window coordinates.
This takes into account several states:
- The window dimensions. - The logical presentation settings SDL_SetRenderLogicalPresentation - The scale SDL_SetRenderScale - The viewport SDL_SetRenderViewport