All pastes #107063 Raw Edit

SDL

public c v1 · immutable
#107063 ·published 2006-07-30 20:24 UTC
rendered paste body
#include <stdlib.h>#include <stdio.h>#include <SDL/SDL.h>int main(int argc, char *argv[]){	SDL_Init(SDL_INIT_VIDEO);	if (SDL_Init(SDL_INIT_VIDEO) == -1)    {        fprintf(stderr, "Erreur d'initialisation de la SDL : %s\n", SDL_GetError()); // Ecriture de l'erreur        exit(EXIT_FAILURE);    }	SDL_SetVideoMode(400, 300, 32, SDL_HWSURFACE | SDL_RESIZABLE | SDL_DOUBLEBUF);    while(1);	SDL_Quit(); 	return EXIT_SUCCESS;}