: , SDL_GetRendererOutputSize
SDL_Renderer*
:
int w, h;
SDL_GetRendererOutputSize(renderer, &w, &h);
void SDL_GetRendererOutputSize (SDL_Renderer * renderer, int * w, int * h)
,
,
Fullscreen:
SDL_GetDesktopDisplayMode()
SDL_DisplayMode dm;
if (SDL_GetDesktopDisplayMode(0, &dm) != 0)
{
SDL_Log("SDL_GetDesktopDisplayMode failed: %s", SDL_GetError());
return 1;
}
int w, h;
w = dm.w;
h = dm.h;
! , SDL_GetDesktopDisplayMode
!