MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / BeginFrame

Method BeginFrame

Source/SysGL/Graphics/GraphicsContextGL.cpp:190–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void GraphicsContextGL::BeginFrame()
191{
192 // Get window size (may be different than the requested size)
193 u32 width, height;
194 GetScreenSize(&width, &height);
195
196 // Special case: avoid division by zero below
197 height = height > 0 ? height : 1;
198
199 glViewport( 0, 0, width, height );
200 glScissor( 0, 0, width, height );
201}
202
203void GraphicsContextGL::EndFrame()
204{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected