comparison test/testdyngl.c @ 910:4ab6d1fd028f

Date: Sat, 26 Jun 2004 14:58:42 +0300 From: "Mike Gorchak" Subject: QNX 6.3 fixes for SDL Sam, I've added new OpenGL framework for SDL, which appeared in the new QNX version - 6.3. I've leave compatibility with previous QNX versions. And I've moved all GL specific functions to the separate module, like it done for the other platforms. SDL is now ready for the QNX 6.3 :)
author Sam Lantinga <slouken@libsdl.org>
date Sun, 18 Jul 2004 19:46:38 +0000
parents 9f6ad2286011
children 8e20c48a9c13
comparison
equal deleted inserted replaced
909:e247a0139900 910:4ab6d1fd028f
87 glfuncs f; 87 glfuncs f;
88 int i; 88 int i;
89 SDL_Event event; 89 SDL_Event event;
90 int done=0; 90 int done=0;
91 GLfloat pixels[NB_PIXELS*3]; 91 GLfloat pixels[NB_PIXELS*3];
92 #ifdef _WIN32 92 #if defined(_WIN32)
93 char *gl_library = "OpenGL32.DLL"; 93 char *gl_library = "OpenGL32.DLL";
94 #elif defined(__QNXNTO__)
95 char *gl_library = "libGL.so.3";
94 #else 96 #else
95 char *gl_library = "libGL.so.1"; 97 char *gl_library = "libGL.so.1";
96 #endif 98 #endif
97 99
98 if (argv[1]) { 100 if (argv[1]) {
120 if (SDL_SetVideoMode(640,480,0,SDL_OPENGL)==NULL) 122 if (SDL_SetVideoMode(640,480,0,SDL_OPENGL)==NULL)
121 { 123 {
122 printf("Unable to open video mode : %s\n",SDL_GetError()); 124 printf("Unable to open video mode : %s\n",SDL_GetError());
123 exit(1); 125 exit(1);
124 } 126 }
127
128 /* Set the window manager title bar */
129 SDL_WM_SetCaption( "SDL Dynamic OpenGL Loading Test", "testdyngl" );
125 130
126 init_glfuncs(&f); 131 init_glfuncs(&f);
127 132
128 for(i=0;i<NB_PIXELS;i++) 133 for(i=0;i<NB_PIXELS;i++)
129 { 134 {