You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1020 B
C++

#include <lowlevellib.h>
int os_main(int argc, char **argv, char **envp )
{
llgfx_SetDisplayMode( 320, 240, 16, 0 );
llgfx_LoadTileMap("/test.png");
llgfx_id background = llgfx_LoadGfx("bluebk");
llgfx_id logo = llgfx_LoadGfx("one03");
llgfx_id clogo = llgfx_CloneGfx(logo);
llgfx_id sssx = llgfx_LoadGfx("background.png");
int x=0;
int y=0;
while(osmain_endgame==false)
{
llgfx_TILE_BLIT(0,background);
llgfx_TILE_BLIT(0,logo,0,0,0,BLIT_SRC_INVALPHA);//BLIT_SRC_ALPHA);
llgfx_BLIT(logo,clogo);
llgfx_TILE_BLIT(logo,sssx,x++,y++,0,BLIT_DST_CKEY);
llgfx_DrawText( 0, 0, "SRC_INVALPHA + DST_CKEY");
llgfx_DrawText( 0, 230, "A-Taste für Exit");
llgfx_FlipScreen(1);
llinput_Update(); // Nach Flipscreen, Inputstatus holen sonst Endlosloop
if( llinput_Keys[LLINPUT_KEY_A] ) // Im Fullscreen modus, oder z.b. am GP2X
osmain_endgame = true; // die A-Taste drücken
}
return 0;
}