search for: glutdisplayfunc

Displaying 2 results from an estimated 2 matches for "glutdisplayfunc".

2006 Oct 16
0
No window decorations for simple glut app on compiz/aiglx?
...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)
...at 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-dev:~/projects/llvmcrash/app$ cat compile_and_run.sh rm -rvf libcrashme.so app g++ -shared -o libcrashme.so crashme.cpp `llvm-config-3.6 --cxxflags` && \ g++ -rdynamic -o app app.cpp -L. -lcrashme -lGL -lglut `llvm-config-3.6 --ldflags --l...