Example #1
0
File: lion.c Project: 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;
}
Example #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;
}
Example #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;
}
Example #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;
}
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;
}
Example #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;
}