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

Method currentWidth

engine/src/program.cpp:249–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249int
250GLWindow::currentWidth ()
251{
252 int width = 0;
253 int height = 0;
254 SDL_GL_GetDrawableSize (window, &width, &height);
255 if (width <= 0)
256 SDL_GetWindowSize (window, &width, nullptr);
257 return width;
258}
259
260int
261GLWindow::currentHeight ()

Callers 2

G_initializeGameFunction · 0.80
R_renderFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected