[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GFX under Linux
what was so hard about SDL??
#include <SDL/SDL.h>
int main() {
SDL_Surface *screen;
if (SDL_Init(SDL_INIT_VIDEO) != 0) {
printf ("unable to initialize sdl: %s\n", SDL_GetError());
return 1;
}
//make sure sdl quits
atexit(SDL_Quit);
//open a screen
//set the 0 at the end to 1 for full screen mode
screen = SDL_SetVideoMode(800,600,16,0);
if (screen == NULL) {
printf ("unable to set video mode: %s\n", SDL_GetError());
return 1;
}
return 0;
}
On Thursday 06 December 2001 02:42, you wrote:
> There is a simple way to get in 800x600x16bpp under Linux?
> I've tried unsuccessfully SDL, then i had a look to X11, but it seems very
> complex if not really far from what i need.
>
> Thanks,
> NW
--
3:40pm up 1 day, 2:41, 1 user, load average: 0.33, 0.71, 0.57