Lucency variable....
Displaying 1-3 of 3 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Omni

Could there be someway to read the current lucency set by SetLucent? Like a GetLucent or a cur_lucency interal variable?

It's not really necessary, but it would be a good time saver.

Posted on 2004-09-23 18:30:17

zaril


int LUCENT_VALUE; // global variable

void MySetLucent(int L)
{
SetLucent(L);
LUCENT_VALUE = L;
}


I bet you knew that, just thought I'd share the idea anyway.

Posted on 2004-09-23 18:42:52

Omni

Well, yeah, but...

Actually, I was testing lucency with my distort image code when I realized that lucency revealed all the details and transparent backgrounds of each scanline of the blit, since every line is actually drawn into different buffers repeatedly, with lucency. I'd like to be able to save the lucency value, set it to 0 for buffer drawing, then set it back to the desired lucency when the blit is drawn to the screen.

As it is, I made a workaround where you specify what lucency value you want as an argument for the DistortBlit. It sets lucency to 0, draws stuff, then sets the desired lucency and blits to the screen. It won't work with SetLucent now, but it does okay.

Posted on 2004-09-23 18:57:24


Displaying 1-3 of 3 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.