示例#1
0
文件: lion.c 项目: aosm/X11apps
int
main(int argc, char *argv[])
{
   eglutInitWindowSize(350, 450);
   eglutInitAPIMask(EGLUT_OPENVG_BIT);
   eglutInit(argc, argv);

   eglutCreateWindow("Lion Example");

   eglutReshapeFunc(reshape);
   eglutDisplayFunc(draw);

   init();

   eglutMainLoop();

   return 0;
}
示例#2
0
int main(int argc, char *argv[]) {
   eglutInitWindowSize(1920, 1200);
   eglutInitAPIMask(EGLUT_OPENGL_BIT);
   eglutInit(argc, argv);

   eglutCreateWindow("liblub-egl");

   OpenGL::Instance().setContextCreated(true);

   launcher = new DemoLauncher(argc, argv);
   launcher->init();

   eglutReshapeFunc(reshape);
   eglutDisplayFunc(draw);
   eglutSpecialFunc(special_key);
   eglutMainLoop();

   return 0;
}
示例#3
0
int
main(int argc, char *argv[])
{
   eglutInitWindowSize(300, 300);
   eglutInitAPIMask(EGLUT_OPENGL_BIT);
   eglutInit(argc, argv);

   eglutCreateWindow("eglgears");

   eglutIdleFunc(idle);
   eglutReshapeFunc(reshape);
   eglutDisplayFunc(draw);

   init();
   glDrawBuffer(GL_BACK);
	
   eglutMainLoop();

   return 0;
}
示例#4
0
int
main(int argc, char *argv[])
{
   eglutInitWindowSize(400, 300);
   eglutInitAPIMask(EGLUT_OPENGL_ES1_BIT);
   eglutInit(argc, argv);

   win = eglutCreateWindow("drawtex");

   eglutIdleFunc(idle);
   eglutReshapeFunc(reshape);
   eglutDisplayFunc(draw);
   eglutKeyboardFunc(key);
   eglutSpecialFunc(special_key);

   init();

   eglutMainLoop();

   return 0;
}
示例#5
0
int
main(int argc, char *argv[])
{
   eglutInitWindowSize(384, 384);
   eglutInitAPIMask(EGLUT_OPENGL_BIT);
   eglutInit(argc, argv);

   eglutCreateWindow("gl-render");

   eglutIdleFunc(idle);
   eglutReshapeFunc(reshape);
   eglutDisplayFunc(draw);

   glClearColor( 0, 0, 0, 1);

 //  init();
   glDrawBuffer(GL_BACK);

   eglutMainLoop();

   return 0;
}
示例#6
0
int
main(int argc, char *argv[])
{
   /* Initialize the window */
   eglutInitWindowSize(300, 300);
   eglutInitAPIMask(EGLUT_OPENGL_ES2_BIT);
   eglutInit(argc, argv);

   eglutCreateWindow("es2gears");

   /* Set up eglut callback functions */
   eglutIdleFunc(gears_idle);
   eglutReshapeFunc(gears_reshape);
   eglutDisplayFunc(gears_draw);
   eglutSpecialFunc(gears_special);

   /* Initialize the gears */
   gears_init();

   eglutMainLoop();

   return 0;
}