MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / swapBuffer

Method swapBuffer

examples/OpenGLWindow/SimpleOpenGL3App.cpp:1076–1093  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1074}
1075
1076void SimpleOpenGL3App::swapBuffer()
1077{
1078 if (m_data->m_frameDumpPngFileName)
1079 {
1080 int width = (int)m_window->getRetinaScale() * m_instancingRenderer->getScreenWidth();
1081 int height = (int)m_window->getRetinaScale() * this->m_instancingRenderer->getScreenHeight();
1082 writeTextureToFile(width,
1083 height, m_data->m_frameDumpPngFileName,
1084 m_data->m_ffmpegFile);
1085 m_data->m_renderTexture->disable();
1086 if (m_data->m_ffmpegFile == 0)
1087 {
1088 m_data->m_frameDumpPngFileName = 0;
1089 }
1090 }
1091 m_window->endRendering();
1092 m_window->startRendering();
1093}
1094
1095void SimpleOpenGL3App::setMp4Fps(int fps)
1096{

Callers 7

updateMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
RenderFrameMethod · 0.45
mainFunction · 0.45

Calls 7

writeTextureToFileFunction · 0.85
disableMethod · 0.80
getRetinaScaleMethod · 0.45
getScreenWidthMethod · 0.45
getScreenHeightMethod · 0.45
endRenderingMethod · 0.45
startRenderingMethod · 0.45

Tested by

no test coverage detected