Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] Simple transparent text using alpha-values

Author
Message
Mr Kohlenstoff
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 28th Jun 2007 17:09
After discussing a bit with my friend over the ink-command we both created RGBA-functions, to enable printing of transparent text in DBP. (I'm not sure if this is possible in DB Classic)
He used memblocks, but this method was very slow, I directly wrote the values into a dword-variable and it's around 15 times slower then the normal RGB-function. On my computer on functioncall needs ~0.00015 ms (so 0.000,000,15 seconds).
Until our discussion I didn't even know that writing transparent text is possible so easy...

Here examplecode with function.. maybe someone needs it.



Have fun etc...
Mr Kohlenstoff

Visit the DBPro - Speed up your game-Thread. http://forum.thegamecreators.com/?m=forum_view&t=88661&b=1
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 1st Jul 2007 16:51
Wow I am impressed! That's a pretty neat function you've got there. I tested to see if it was really making transparent text by adding a 3D object and it was...



Login to post a reply

Server time is: 2024-11-22 18:49:56
Your offset time is: 2024-11-22 18:49:56