test/testdyngl.c
changeset 910 4ab6d1fd028f
parent 885 9f6ad2286011
child 990 8e20c48a9c13
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 	{