ya, pero lo curioso es que en realidad ni la utilizo porque solo pide de sdl.h, y no sdl_mixer
Código:
///////////////////////////////////////////////////////////////////////////////
/// @file main.cpp
/// @brief Template main file for an empty SDL shell on GP2X based off
/// Lazy Foo.
/// @author Steven Yau
/// @date 16 Aug 2007
///////////////////////////////////////////////////////////////////////////////
#include <SDl/SDL.h>
const int SCREEN_WIDTH = 320;
const int SCREEN_HEIGHT = 240;
int main( int argc, char* args[] )
{
// Initialize all SDL subsystems
if( SDL_Init( SDL_INIT_EVERYTHING ) == -1 )
{
return 1;
}
// Create the screen surface
SDL_Surface * screen =
SDL_SetVideoMode( SCREEN_WIDTH, SCREEN_HEIGHT, 16, SDL_HWSURFACE | SDL_HWPALETTE | SDL_DOUBLEBUF );
// Do PC specific stuff
#ifdef PLATFORM_PC
// Set the window caption
SDL_WM_SetCaption( "Hello World", NULL );
#endif // PLATFORM_PC
// Update the screen
if( SDL_Flip( screen ) == -1 )
{
return 1;
}
SDL_Quit();
// Do GP2X specific stuff
#ifdef PLATFORM_GP2X
// Return to the menu
chdir("/usr/gp2x");
execl("/usr/gp2x/gp2xmenu", "/usr/gp2x/gp2xmenu", NULL);
#endif // PLATFORM_GP2X
return 0;
}
Marcadores