Displaying 4 results from an estimated 4 matches for "glutinitdisplaymode".
2006 Oct 16
0
No window decorations for simple glut app on compiz/aiglx?
...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;
}
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 simple -lglut
$ ./simple
GL_VERSION =...
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)
..."
#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-dev:~/projects/llvmcrash/app$ cat compile_a...
2013 Jan 28
0
[LLVMdev] Testing canaries
...0.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 worked correctly
> $ clang? simple.c? -o? simp...