An EZwgl program should contain the following components.
EZ.h.
EZ_Initialize.
EZ_CreateWidget.
EZ_AddWidgetCallback and EZ_AddEventHandler.
EZ_DisplayWidget on your
toplevel widgets.
EZ_EventMainLoop or
EZ_ServiceEvents or EZ_WaitAndServiceNextEvent.