Exemple #1
0
static void
puglDisplay(PuglView* view)
{
	puglEnterContext(view);

	if (view->displayFunc) {
		view->displayFunc(view);
	}

	puglLeaveContext(view, true);
	view->redisplay = false;
}
Exemple #2
0
static void
puglReshape(PuglView* view, int width, int height)
{
	puglEnterContext(view);

	if (view->reshapeFunc) {
		view->reshapeFunc(view, width, height);
	}

	view->width  = width;
	view->height = height;
}
Exemple #3
0
static void
puglReshape(PuglView* view, int width, int height)
{
	puglEnterContext(view);

	if (view->reshapeFunc) {
		view->reshapeFunc(view, width, height);
	} else {
		puglDefaultReshape(view, width, height);
	}

	puglLeaveContext(view, false);

	view->width  = width;
	view->height = height;
}