static void puglDisplay(PuglView* view) { puglEnterContext(view); if (view->displayFunc) { view->displayFunc(view); } puglLeaveContext(view, true); view->redisplay = false; }
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; }