void SampleGLView::Render(void) { LockGL(); gDraw(rotate); SwapBuffers(); UnlockGL(); }
void TutGLView::Render( void ) { // Render our OpenGL scene and swap the buffer so we can actually see // it. LockGL(); gDraw(); if( _window->draw_mutex->Lock() ) { if( _window->window_connected ) SwapBuffers(); _window->draw_mutex->Unlock(); } UnlockGL(); }