Esempio n. 1
0
void SampleGLView::Render(void)
{
    LockGL();
    gDraw(rotate);
    SwapBuffers();
    UnlockGL();
}
Esempio n. 2
0
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();
}