Hi All,
I'm working on the images for the engine. I can load, display (paste) and delete images.
Here is a small star scroll based on an image that is 256x256 pixels wide. The source code IS NOT optimized. It's only for demo purpose and showing the engine commands set ;)
Now, you also have a logo that use blending for transparency using alpha channel.
Link :
http://files.odyssey-creators.com/os4opengl/AmiDEImageScroll.zipSnapshot :
http://files.odyssey-creators.com/os4opengl/AmiDEImageScroll.jpgHere is the demo source code :
(as easy as basic language, but in C)
#include "AmiDARKEngine.c"
float XPos, YPos;
void DarkLoop( void ){
DESetDisplayMode( 640, 480, 32 );
DESetMaximumTextures( 2 );
DELoadImage( "Images/Space_3-2.mrw", 1 );
DELoadImage( "Images/logo.mrw", 2 );
DECls();
XPos = YPos = 0;
while( !DELoop() ){
XPos = XPos - 0.1 ;
DEPasteImage( 1, XPos, YPos );
DEPasteImage( 1, XPos + 256, YPos );
DEPasteImage( 1, XPos + 512, YPos );
DEPasteImage( 1, XPos + 768, YPos );
DEPasteImage( 1, XPos, YPos + 256 );
DEPasteImage( 1, XPos + 256, YPos + 256 );
DEPasteImage( 1, XPos + 512, YPos + 256 );
DEPasteImage( 1, XPos + 768, YPos + 256 );
DEPasteImageEx( 2, 64, 64, 2 );
if ( XPos < -256 ){
XPos = XPos + 256;
}
DESync();
}
DEDeleteImage( 1 );
DEDeleteImage( 2 );
}
Does this small sample work on your Amiga with OS4 ?
EDIT : Simply press escape to quit the demo.
Kindest Regards,
Fred
Edited by freddix on 2009/4/8 23:41:35
Edited by freddix on 2009/4/9 1:02:00
Edited by freddix on 2009/4/9 1:04:08