Beispiel #1
0
static void mainwindow_timer_proc(GHOST_TimerTaskHandle task, GHOST_TUns64 time) {
	MainWindow *mw= GHOST_GetTimerTaskUserData(task);
	char buf[64];
	
	sprintf(buf, "timer: %6.2f", (double) ((GHOST_TInt64) time)/1000);
	mainwindow_log(mw, buf);
}
Beispiel #2
0
static void gearsTimerProc(GHOST_TimerTaskHandle hTask, GHOST_TUns64 time)
{
	GHOST_WindowHandle hWindow = NULL;
	fAngle += 2.0;
	view_roty += 1.0;
	hWindow = (GHOST_WindowHandle)GHOST_GetTimerTaskUserData(hTask);
	if (GHOST_GetFullScreen(shSystem))
	{
		/* Running full screen */
		GHOST_InvalidateWindow(sFullScreenWindow);
	}
	else {
		if (GHOST_ValidWindow(shSystem, hWindow))
		{
			GHOST_InvalidateWindow(hWindow);
		}
	}
}