MCPcopy Create free account
hub / github.com/arrayfire/forge / swapBuffers

Method swapBuffers

src/backend/opengl/window_impl.cpp:331–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331void window_impl::swapBuffers()
332{
333 mWindow->swapBuffers();
334 mWindow->pollEvents();
335 // clear color and depth buffers
336 glClearColor(WHITE[0], WHITE[1], WHITE[2], WHITE[3]);
337 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
338}
339
340void window_impl::saveFrameBuffer(const char* pFullPath)
341{

Callers 1

drawMethod · 0.45

Calls 1

pollEventsMethod · 0.45

Tested by

no test coverage detected