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

Method Clear

engine/src/rendertarget.cpp:58–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void RenderTarget::Clear(float r, float g, float b, float a)
59{
60 glBindFramebuffer(GL_FRAMEBUFFER, fbo);
61 glClearColor(r, g, b, a);
62 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
63}
64
65void RenderTarget::Delete()
66{

Callers 4

initializeLevelMethod · 0.45
R_renderFunction · 0.45
R_resizeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected