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.

393 lines
10 KiB
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
}
osmain_endgame=false;
while( llinput_Keys[LLINPUT_KEY_A] ) llinput_Update();
while(osmain_endgame==false)
{
llgfx_TILE_BLIT(0,background);
llgfx_TILE_BLIT(0,logo,0,0,0,BLIT_SRC_ALPHA);//BLIT_SRC_ALPHA);
llgfx_BLIT(logo,clogo);
llgfx_TILE_BLIT(logo,sssx,x++,y++,0,BLIT_DST_INVALPHA);
llgfx_DrawText( 0, 0, "SRC_ALPHA + BLIT_DST_INVALPHA");
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
}
osmain_endgame=false;
while( llinput_Keys[LLINPUT_KEY_A] ) llinput_Update();
while(osmain_endgame==false)
{
llgfx_ClearScreen(0);
llgfx_TILE_BLIT(0,background,0,0,0,BLIT_RANDOM);
llgfx_TILE_BLIT(0,clogo,0,0,0,BLIT_SRC_ALPHA);
//llgfx_BLIT(logo,clogo);
//llgfx_TILE_BLIT(logo,sssx,x++,y++,0,BLIT_DST_INVALPHA);
llgfx_DrawText( 0, 0, "RANDOM + SRC_ALPHA");
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
}
osmain_endgame=false;
while( llinput_Keys[LLINPUT_KEY_A] ) llinput_Update();
while(osmain_endgame==false)
{
llgfx_TILE_BLIT(0,background);
llgfx_TILE_BLIT(0,clogo,0,0,0,BLIT_RASTER);
//llgfx_BLIT(logo,clogo);
//llgfx_TILE_BLIT(logo,sssx,x++,y++,0,BLIT_DST_INVALPHA);
llgfx_DrawText( 0, 0, "RASTER");
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
}
osmain_endgame=false;
while( llinput_Keys[LLINPUT_KEY_A] ) llinput_Update();
while(osmain_endgame==false)
{
llgfx_TILE_BLIT(0,background);
llgfx_TILE_BLIT(0,clogo,0,0,0,BLIT_SCANLINES);
//llgfx_BLIT(logo,clogo);
//llgfx_TILE_BLIT(logo,sssx,x++,y++,0,BLIT_DST_INVALPHA);
llgfx_DrawText( 0, 0, "SCANLINES");
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
}
osmain_endgame=false;
while( llinput_Keys[LLINPUT_KEY_A] ) llinput_Update();
while(osmain_endgame==false)
{
llgfx_TILE_BLIT(0,background);
llgfx_sBLITFX blitfx;
blitfx.fixalpha = 1.0f;
llgfx_TILE_BLIT(0,clogo,0,0,0,BLIT_FXADD,&blitfx);
//llgfx_BLIT(logo,clogo);
//llgfx_TILE_BLIT(logo,sssx,x++,y++,0,BLIT_DST_INVALPHA);
llgfx_DrawText( 0, 0, "BLIT_FXADD");
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
}
osmain_endgame=false;
while( llinput_Keys[LLINPUT_KEY_A] ) llinput_Update();
while(osmain_endgame==false)
{
llgfx_TILE_BLIT(0,background);
llgfx_sBLITFX blitfx;
blitfx.fixalpha = 1;
llgfx_TILE_BLIT(0,clogo,0,0,0,BLIT_FXSUB,&blitfx);
//llgfx_BLIT(logo,clogo);
//llgfx_TILE_BLIT(logo,sssx,x++,y++,0,BLIT_DST_INVALPHA);
llgfx_DrawText( 0, 0, "BLIT_FXSUB");
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
}
osmain_endgame=false;
while( llinput_Keys[LLINPUT_KEY_A] ) llinput_Update();
while(osmain_endgame==false)
{
llgfx_TILE_BLIT(0,background);
llgfx_sBLITFX blitfx;
blitfx.fixalpha = 1;
llgfx_TILE_BLIT(0,clogo,0,0,0,BLIT_FXMUL,&blitfx);
//llgfx_BLIT(logo,clogo);
//llgfx_TILE_BLIT(logo,sssx,x++,y++,0,BLIT_DST_INVALPHA);
llgfx_DrawText( 0, 0, "BLIT_FXMUL");
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
}
osmain_endgame=false;
while( llinput_Keys[LLINPUT_KEY_A] ) llinput_Update();
while(osmain_endgame==false)
{
llgfx_TILE_BLIT(0,background);
llgfx_sBLITFX blitfx;
blitfx.fixalpha = 0.5;
llgfx_TILE_BLIT(0,clogo,0,0,0,BLIT_FXINVMUL,&blitfx);
//llgfx_BLIT(logo,clogo);
//llgfx_TILE_BLIT(logo,sssx,x++,y++,0,BLIT_DST_INVALPHA);
llgfx_DrawText( 0, 0, "BLIT_FXINVMUL");
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
}
osmain_endgame=false;
while( llinput_Keys[LLINPUT_KEY_A] ) llinput_Update();
while(osmain_endgame==false)
{
llgfx_TILE_BLIT(0,background);
llgfx_sBLITFX blitfx;
blitfx.fixalpha = 1;
llgfx_TILE_BLIT(0,clogo,0,0,0,BLIT_FXDIFF,&blitfx);
//llgfx_BLIT(logo,clogo);
//llgfx_TILE_BLIT(logo,sssx,x++,y++,0,BLIT_DST_INVALPHA);
llgfx_DrawText( 0, 0, "BLIT_FXDIFF");
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
}
osmain_endgame=false;
while( llinput_Keys[LLINPUT_KEY_A] ) llinput_Update();
while(osmain_endgame==false)
{
llgfx_TILE_BLIT(0,background);
llgfx_sBLITFX blitfx;
blitfx.fixalpha = 1;
llgfx_TILE_BLIT(0,clogo,0,0,0,BLIT_FXDARKEN,&blitfx);
//llgfx_BLIT(logo,clogo);
//llgfx_TILE_BLIT(logo,sssx,x++,y++,0,BLIT_DST_INVALPHA);
llgfx_DrawText( 0, 0, "BLIT_FXDARKEN");
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
}
osmain_endgame=false;
while( llinput_Keys[LLINPUT_KEY_A] ) llinput_Update();
while(osmain_endgame==false)
{
llgfx_TILE_BLIT(0,background);
llgfx_sBLITFX blitfx;
blitfx.fixalpha = 1;
llgfx_TILE_BLIT(0,clogo,0,0,0,BLIT_FXLIGHTEN,&blitfx);
//llgfx_BLIT(logo,clogo);
//llgfx_TILE_BLIT(logo,sssx,x++,y++,0,BLIT_DST_INVALPHA);
llgfx_DrawText( 0, 0, "BLIT_FXLIGHTEN");
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
}
osmain_endgame=false;
while( llinput_Keys[LLINPUT_KEY_A] ) llinput_Update();
while(osmain_endgame==false)
{
llgfx_TILE_BLIT(0,background);
llgfx_sBLITFX blitfx;
blitfx.fixalpha = 1;
blitfx.color = GOLD;
llgfx_TILE_BLIT(0,clogo,0,0,0,BLIT_FXCOLOR,&blitfx);
//llgfx_BLIT(logo,clogo);
//llgfx_TILE_BLIT(logo,sssx,x++,y++,0,BLIT_DST_INVALPHA);
llgfx_DrawText( 0, 0, "BLIT_FXCOLOR");
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
}
osmain_endgame=false;
while( llinput_Keys[LLINPUT_KEY_A] ) llinput_Update();
while(osmain_endgame==false)
{
llgfx_TILE_BLIT(0,background);
llgfx_sBLITFX blitfx;
blitfx.fixalpha = ((x++)&0xff) / 255.0f;
llgfx_TILE_BLIT(0,clogo,0,0,0,BLIT_FXBLEND|BLIT_SRC_CKEY,&blitfx);
//llgfx_BLIT(logo,clogo);
//llgfx_TILE_BLIT(logo,sssx,x++,y++,0,BLIT_DST_INVALPHA);
llgfx_DrawText( 0, 0, "BLIT_FXBLEND");
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;
}