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

Method ClearColBufferAndDepth

Source/SysGL/Graphics/GraphicsContextGL.cpp:182–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void GraphicsContextGL::ClearColBufferAndDepth(const c32 & colour)
183{
184 glDepthMask(GL_TRUE);
185 glClearDepth( 1.0f );
186 glClearColor( colour.GetRf(), colour.GetGf(), colour.GetBf(), colour.GetAf() );
187 glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
188}
189
190void GraphicsContextGL::BeginFrame()
191{

Callers

nothing calls this directly

Calls 4

GetRfMethod · 0.80
GetGfMethod · 0.80
GetBfMethod · 0.80
GetAfMethod · 0.80

Tested by

no test coverage detected