mirror of
https://github.com/yawut/SDL.git
synced 2026-08-22 00:35:18 -05:00
Implemented OpenGL support on Mac OS X
The OpenGL renderer works without changes, yay! :)
This commit is contained in:
@@ -244,28 +244,25 @@ main(int argc, char *argv[])
|
||||
printf("Extensions : %s\n", glGetString(GL_EXTENSIONS));
|
||||
printf("\n");
|
||||
|
||||
SDL_GL_GetWindowAttribute(state->windows[0], SDL_GL_RED_SIZE, &value);
|
||||
SDL_GL_GetAttribute(SDL_GL_RED_SIZE, &value);
|
||||
printf("SDL_GL_RED_SIZE: requested %d, got %d\n", 5, value);
|
||||
SDL_GL_GetWindowAttribute(state->windows[0], SDL_GL_GREEN_SIZE, &value);
|
||||
SDL_GL_GetAttribute(SDL_GL_GREEN_SIZE, &value);
|
||||
printf("SDL_GL_GREEN_SIZE: requested %d, got %d\n", 5, value);
|
||||
SDL_GL_GetWindowAttribute(state->windows[0], SDL_GL_BLUE_SIZE, &value);
|
||||
SDL_GL_GetAttribute(SDL_GL_BLUE_SIZE, &value);
|
||||
printf("SDL_GL_BLUE_SIZE: requested %d, got %d\n", 5, value);
|
||||
SDL_GL_GetWindowAttribute(state->windows[0], SDL_GL_DEPTH_SIZE, &value);
|
||||
SDL_GL_GetAttribute(SDL_GL_DEPTH_SIZE, &value);
|
||||
printf("SDL_GL_DEPTH_SIZE: requested %d, got %d\n", 16, value);
|
||||
SDL_GL_GetWindowAttribute(state->windows[0], SDL_GL_DOUBLEBUFFER, &value);
|
||||
SDL_GL_GetAttribute(SDL_GL_DOUBLEBUFFER, &value);
|
||||
printf("SDL_GL_DOUBLEBUFFER: requested 1, got %d\n", value);
|
||||
if (fsaa) {
|
||||
SDL_GL_GetWindowAttribute(state->windows[0],
|
||||
SDL_GL_MULTISAMPLEBUFFERS, &value);
|
||||
SDL_GL_GetAttribute(SDL_GL_MULTISAMPLEBUFFERS, &value);
|
||||
printf("SDL_GL_MULTISAMPLEBUFFERS: requested 1, got %d\n", value);
|
||||
SDL_GL_GetWindowAttribute(state->windows[0],
|
||||
SDL_GL_MULTISAMPLESAMPLES, &value);
|
||||
SDL_GL_GetAttribute(SDL_GL_MULTISAMPLESAMPLES, &value);
|
||||
printf("SDL_GL_MULTISAMPLESAMPLES: requested %d, got %d\n", fsaa,
|
||||
value);
|
||||
}
|
||||
if (accel) {
|
||||
SDL_GL_GetWindowAttribute(state->windows[0],
|
||||
SDL_GL_ACCELERATED_VISUAL, &value);
|
||||
SDL_GL_GetAttribute(SDL_GL_ACCELERATED_VISUAL, &value);
|
||||
printf("SDL_GL_ACCELERATED_VISUAL: requested 1, got %d\n", value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user