MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / startFrame

Method startFrame

source/application/StarRenderer_opengl.cpp:625–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623}
624
625void OpenGlRenderer::startFrame() {
626 if (m_scissorRect)
627 glDisable(GL_SCISSOR_TEST);
628
629 for (auto& frameBuffer : m_frameBuffers) {
630 glBindFramebuffer(GL_DRAW_FRAMEBUFFER, frameBuffer.second->id);
631 glClear(GL_COLOR_BUFFER_BIT);
632 frameBuffer.second->blitted = false;
633 }
634
635 glBindFramebuffer(GL_FRAMEBUFFER, 0);
636
637 glClear(GL_COLOR_BUFFER_BIT);
638
639 if (m_scissorRect)
640 glEnable(GL_SCISSOR_TEST);
641}
642
643void OpenGlRenderer::finishFrame() {
644 flushImmediatePrimitives();

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected