Here the code (don't know why it was not included in the first place)
The only thing I've is a black screen.
#include "DarkSDK.h"
int width = 640, height = 480 , depth = 16; // screen resolution
void rasters(void) {
dbSprite ( 0, 0, 0, 0 ); //first zero is the sprite number, then x/y coord. then the number of the image where the sprite is taking from (see getimage)
}
void DarkSDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 0 );
dbSetDisplayMode ( width, height, depth );
dbLoadImage ( "rasterr.png", 0 );
dbGetImage ( 0, 0, 0, 640, 16 ); //first zero number of the image (ref), then upper left, top width and size of the image to create the sprite
while ( LoopSDK ( ) )
{
if ( dbEscapeKey ( ) )
return;
rasters(); //display the sprite.
dbSync ( );
}
}
/kml