comparison src/SDL_compat.c @ 1936:83946ee0ff1f

Implemented OpenGL support on Mac OS X The OpenGL renderer works without changes, yay! :)
author Sam Lantinga <slouken@libsdl.org>
date Tue, 25 Jul 2006 06:22:42 +0000
parents 69217fdd2c0a
children a788656ca29a
comparison
equal deleted inserted replaced
1935:8a9b367a80f3 1936:83946ee0ff1f
1430 } 1430 }
1431 SDL_free(overlay); 1431 SDL_free(overlay);
1432 } 1432 }
1433 } 1433 }
1434 1434
1435 int
1436 SDL_GL_GetAttribute(SDL_GLattr attr, int *value)
1437 {
1438 return SDL_GL_GetWindowAttribute(SDL_VideoWindow, attr, value);
1439 }
1440
1441 void 1435 void
1442 SDL_GL_SwapBuffers(void) 1436 SDL_GL_SwapBuffers(void)
1443 { 1437 {
1444 SDL_GL_SwapWindow(SDL_VideoWindow); 1438 SDL_GL_SwapWindow(SDL_VideoWindow);
1445 } 1439 }