Tengo este codigo
- Código: Seleccionar todo
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
SDL_Surface *Exp2;
...
Exp2 = IMG_Load( "../IMG/EXPLOCION/EXPLOCION_FOR/2.png" );
if( Exp2 == NULL ){
printf("Error al cargar la imagen %s\n", SDL_GetError() );
exit( 0 );
}
Exp2 = SDL_DisplayFormat( Exp2 );
...
SDL_FreeSurface( Exp2 );
y todo bien compila y todo(sin errores) pero cuando lo ejecuto se cierra la ventana inmediatamente ni si quiera se ve que la abre y no marca error no se que pasa...
Ojala Puedan ayudarme...