#pragma section-numbers off #pragma camelcase off || DRAFT|| ##*^*^*^*^*See http://wiki.libsdl.org/moin.cgi/SGFunctions for details on editing this page*^*^*^*^* = SDL_GL_GetDrawableSize = Use this function to get the size of a window's underlying drawable in pixels (for use with glViewport). <> == Syntax == {{{#!highlight cpp void SDL_GL_GetDrawableSize(SDL_Window* window, int* w, int* h) }}} == Function Parameters == ||'''window'''||the window from which the drawable size should be queried|| ||'''w'''||a pointer to variable for storing the width in pixels, may be NULL|| ||'''h'''||a pointer to variable for storing the height in pixels, may be NULL|| == Code Examples == {{{#!highlight cpp You can add your code example here }}} ##Leave this section as-is unless you have a code example to put in. In that case, replace You can add your code example here with your code example following the Style Guide instructions. Leave the rest of the markup alone and delete this comment. == Remarks == This may differ from [[SDL_GetWindowSize]]() if we're rendering to a high-DPI drawable, i.e. the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a platform with high-DPI support (Apple calls this "Retina"), and not disabled by the [[SDL_HINT_VIDEO_HIGHDPI_DISABLED]] hint. == Version == This function is available since SDL 2.0.1. == Related Functions == .[[SDL_CreateWindow]] .[[SDL_GetWindowSize]] ---- [[CategoryAPI]], [[CategoryVideo]] ##See the Style Guide for instructions on editing the footer.