예제 #1
0
int
main(int argc, char *argv[])
{
    glview_initialize(GLVIEW_API_OPENGLES_11, &render);
    glview_register_initialize_callback(&initialize);
    glview_register_event_callback(&event);
    return glview_loop();
}
예제 #2
0
int main(int argc, char **argv)
{
  glview_initialize(GLVIEW_API_OPENGLES_11, &frame);
  glview_register_initialize_callback(&init);
  glview_register_finalize_callback(&fina);
  glview_register_resize_callback(&resize);
  glview_register_event_callback(&event);

  App app;
  app.dfps = 1000.0f / 60.0f;
  app.fpsTimeStart = GetTicks();
  app.frames = 0;

  glview_set_callback_data(&app);

  return glview_loop();
}