Mercurial > sdl-ios-xcode
annotate test/testver.c @ 890:416158ec61a0
Date: Sat, 10 Apr 2004 10:05:46 +0200
From: Christian Walther
Subject: [SDL] OpenGL Accumulation Buffer on Mac OS X
Is there a reason for not having OpenGL accumulation buffer support in
SDL 1.2.7 (and as far as I have checked also in the current CVS) on Mac OS
X?
Maybe I am doing something wrong, but it seems very easy to add (at least
it works for for me in 10.3.3) - just add
if ( this->gl_config.accum_red_size + this->gl_config.accum_green_size + this->gl_config.accum_blue_size + this->gl_config.accum_alpha_size > 0) {
attr[i++] = NSOpenGLPFAAccumSize;
attr[i++] = this->gl_config.accum_red_size + this->gl_config.accum_green_size + this->gl_config.accum_blue_size + this->gl_config.accum_alpha_size;
}
to QZ_SetupOpenGL() in SDL_QuartzGL.m
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 16 May 2004 18:06:27 +0000 |
parents | c203b4a42701 |
children | d93862a3d821 |
rev | line source |
---|---|
0 | 1 |
2 /* Test program to compare the compile-time version of SDL with the linked | |
3 version of SDL | |
4 */ | |
5 | |
6 #include <stdio.h> | |
7 | |
8 #include "SDL.h" | |
9 | |
10 int main(int argc, char *argv[]) | |
11 { | |
12 SDL_version compiled; | |
13 | |
14 /* Initialize SDL */ | |
15 if ( SDL_Init(0) < 0 ) { | |
16 fprintf(stderr, "Couldn't initialize SDL: %s\n",SDL_GetError()); | |
17 exit(1); | |
18 } | |
19 #ifdef DEBUG | |
20 fprintf(stderr, "SDL initialized\n"); | |
21 #endif | |
22 #if SDL_VERSION_ATLEAST(1, 2, 0) | |
23 printf("Compiled with SDL 1.2 or newer\n"); | |
24 #else | |
25 printf("Compiled with SDL older than 1.2\n"); | |
26 #endif | |
27 SDL_VERSION(&compiled); | |
28 printf("Compiled version: %d.%d.%d\n", | |
29 compiled.major, compiled.minor, compiled.patch); | |
30 printf("Linked version: %d.%d.%d\n", | |
31 SDL_Linked_Version()->major, | |
32 SDL_Linked_Version()->minor, | |
33 SDL_Linked_Version()->patch); | |
34 SDL_Quit(); | |
35 return(0); | |
36 } |