Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
113 user(s) are online (91 user(s) are browsing Forums)

Members: 2
Guests: 111

frederick, billyfish, more...

Support us!

Headlines

 
  Register To Post  

[WIP] AmiDARK Engine OS4 - Pasting Images
Quite a regular
Quite a regular


See User information
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.zip

Snapshot :
http://files.odyssey-creators.com/os4opengl/AmiDEImageScroll.jpg

Here is the demo source code :
(as easy as basic language, but in C)
#include "AmiDARKEngine.c"
float XPosYPos;

void DarkLoopvoid ){
  
DESetDisplayMode64048032 );
  
DESetMaximumTextures);
  
DELoadImage"Images/Space_3-2.mrw");
  
DELoadImage"Images/logo.mrw");
  
DECls();
  
XPos YPos 0;
  while( !
DELoop() ){
    
XPos XPos 0.1 ;
    
DEPasteImage1XPosYPos );
    
DEPasteImage1XPos 256YPos );
    
DEPasteImage1XPos 512YPos );
    
DEPasteImage1XPos 768YPos );
    
DEPasteImage1XPosYPos 256 );
    
DEPasteImage1XPos 256YPos 256 );
    
DEPasteImage1XPos 512YPos 256 );
    
DEPasteImage1XPos 768YPos 256 );

    
DEPasteImageEx26464);


    if ( 
XPos < -256 ){
      
XPos XPos 256;
     }
    
DESync();
   }
  
DEDeleteImage);
  
DEDeleteImage);
 }


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
All we have to decide is what to do with the time that is given to us.
Go to top
Re: [WIP] AmiDARK Engine OS4 - Pasting Images
Just can't stay away
Just can't stay away


See User information
@freddix

It works but only in the original window size.
Check this picture.
I made the window bigger, but the stars didn't follow.
They keep scrolling in the original window size.


Edited by Elwood on 2009/4/6 20:47:14
Philippe 'Elwood' FERRUCCI
Sam460ex 1.10 Ghz
http://elwoodb.free.fr
Go to top
Re: [WIP] AmiDARK Engine OS4 - Pasting Images
Quite a regular
Quite a regular


See User information
@Elwood
Hi Elwood,
In fact I've not yet defined stretching function that's why when you're resizing the window, the stars keep the same size .. it also show the clipping I've made at the default resolution.


Edited by freddix on 2009/4/7 0:16:45
All we have to decide is what to do with the time that is given to us.
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 3 ( 0 members and 3 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project