MCPcopy Create free account
hub / github.com/defold/defold / OpenGLResizeWindow

Function OpenGLResizeWindow

engine/graphics/src/opengl/graphics_opengl.cpp:2094–2102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2092 }
2093
2094 static void OpenGLResizeWindow(HContext _context, uint32_t width, uint32_t height)
2095 {
2096 assert(_context);
2097 OpenGLContext* context = (OpenGLContext*) _context;
2098 if (dmPlatform::GetWindowStateParam(context->m_BaseContext.m_Window, WINDOW_STATE_OPENED))
2099 {
2100 dmPlatform::SetWindowSize(context->m_BaseContext.m_Window, width, height);
2101 }
2102 }
2103
2104 static void OpenGLGetDefaultTextureFilters(HContext _context, TextureFilter& out_min_filter, TextureFilter& out_mag_filter)
2105 {

Callers

nothing calls this directly

Calls 3

assertFunction · 0.50
GetWindowStateParamFunction · 0.50
SetWindowSizeFunction · 0.50

Tested by

no test coverage detected