Horde3D

Next-Generation Graphics Engine
It is currently 26.11.2024, 21:24

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 03.04.2009, 09:35 
Offline

Joined: 21.08.2008, 11:44
Posts: 354
How to set alpha value for overlays to fade in/out them in code?


Last edited by Siavash on 03.04.2009, 09:55, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: 03.04.2009, 09:52 
Offline

Joined: 05.03.2007, 19:38
Posts: 167
Location: Romania
according to the docs:

Code:
DLL void showOverlay(   float    x_tl,
   float    y_tl,
   float    u_tl,
   float    v_tl,
   float    x_bl,
   float    y_bl,
   float    u_bl,
   float    v_bl,
   float    x_br,
   float    y_br,
   float    u_br,
   float    v_br,
   float    x_tr,
   float    y_tr,
   float    u_tr,
   float    v_tr,
   float    colR,
   float    colG,
   float    colB,
   float    colA,
   ResHandle    materialRes,
   int    layer   )


the 20th(colA) parameter is alpha. increasing it or decreasing it in your loop (calling alpha++ each time for example) will get you that transition

_________________
Paul


Top
 Profile  
Reply with quote  
PostPosted: 03.04.2009, 09:55 
Offline

Joined: 21.08.2008, 11:44
Posts: 354
thanks a lot ;)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group