search for: glutinit

Displaying 4 results from an estimated 4 matches for "glutinit".

Did you mean: gl_init
2013 Jan 26
1
[LLVMdev] lli problem with a simple OpenGL
 Hello, I wrote a very simple openGL application, as below #include #include int main(int argc, char **argv) {   glutInit(&argc, argv);   glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);   glutCreateWindow("red 3D lighted cube");   printf("GL_VERSION = %s\n",glGetString(GL_VERSION) );   return 0; } Compiling it with Clang and adding -lglut option worked correctly $ clang  simple.c  -o...
2006 Oct 16
0
No window decorations for simple glut app on compiz/aiglx?
...his up? Thanks much, Sean P.S. compiled with -lGL -lglut and using r300 driver. #include <GL/glut.h> void DrawScene(void) { glClearColor(0.5, 0.0, 0.0, 0.0); glClear(GL_COLOR_BUFFER_BIT); glColor3f(0.0, 0.1, 1.0); glutSolidTeapot(0.6); glFlush(); } int main(int argc, char *argv[]) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB); glutCreateWindow(argv[0]); glutDisplayFunc(DrawScene); glutMainLoop(); return 0; }
2015 Feb 16
4
[LLVMdev] Segfault when using llvm-3.6 and OpenGL at the same time on Linux (with mesa, which uses llvm-3.4)
....4 #include "GL/freeglut.h" #include "GL/gl.h" void foo(); // Defined in libcrashme.so // Dummy OpenGL display func void display () { } int main(int argc, char** argv) { foo(); // Call our dummy llvm function, that actually does nothing. This is required for the crash glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE); glutInitWindowSize(500, 500); glutInitWindowPosition(100, 100); glutCreateWindow("This crashes when using an llvm lib"); // Crash happens here: glutDisplayFunc(display); glutMainLoop(); } daniel at ubuntu32-d...
2013 Jan 28
0
[LLVMdev] Testing canaries
...t; Message-ID: <1500165980.71560.1359222937641.JavaMail.www at wwinf8316> > Content-Type: text/plain; charset="utf-8" > > ?Hello, > > I wrote a very simple openGL application, as below > > #include > #include > int main(int argc, char **argv) > { > ? glutInit(&argc, argv); > ? glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH); > ? glutCreateWindow("red 3D lighted cube"); > ? printf("GL_VERSION = %s\n",glGetString(GL_VERSION) ); > ? return 0; > } > > Compiling it with Clang and adding -lglut option work...