hola estoy haciendo ps un programa de autos y quisiera poner una imagen del modelo alguien me podria decir q libreria y la funcion y como se utiliza..porfa gracias..
saque esto de aqui http://www.lazyfoo.net/SDL_tutorials/lesson03/linux/cli/index.php
es una funcion que carga una imagen usando SDL
SDL_Surface *load_image( std::string filename )
{
//The image that's loaded
SDL_Surface* loadedImage = NULL;
//The optimized image that will be used
SDL_Surface* optimizedImage = NULL;
//Load the image using SDL_image
loadedImage = IMG_Load( filename.c_str() );
//If the image loaded
if( loadedImage != NULL )
{
//Create an optimized image
optimizedImage = SDL_DisplayFormat( loadedImage );
//Free the old image
SDL_FreeSurface( loadedImage );
}
//Return the optimized image
return optimizedImage;
}
aqui esta el codigo completo
http://www.lazyfoo.net/downloads/index.php?file=SDLTut_lesson03
no mencionaste para que SO, pero si es para windows entonces puedes usar W32, LoadImage y luego podes usar
el mensajes STM_SETIMAGE :)