MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / currentHeight

Method currentHeight

engine/src/program.cpp:260–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260int
261GLWindow::currentHeight ()
262{
263 int width = 0;
264 int height = 0;
265 SDL_GL_GetDrawableSize (window, &width, &height);
266 if (height <= 0)
267 SDL_GetWindowSize (window, nullptr, &height);
268 return height;
269}
270
271int
272GLWindow::currentMode ()

Callers 2

G_initializeGameFunction · 0.80
R_renderFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected