| 329 | } |
| 330 | |
| 331 | void 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 | |
| 340 | void window_impl::saveFrameBuffer(const char* pFullPath) |
| 341 | { |