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-Function for AA-Line-Drawing

Author
Message
Mr Kohlenstoff
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 16th Jun 2007 20:58
Hi,

I've wrote a small function for antialiazed line-drawing.

Here some examples:

1. AA-Lines with intersection-calculation (main-code from another thread)



2. Lines on different colored backdrop


Have fun with it..

Visit the DBPro - Speed up your game-Thread. http://forum.thegamecreators.com/?m=forum_view&t=88661&b=1
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 16th Jun 2007 21:32
The line seems to disappear when it's vertical.

Mr Kohlenstoff
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 16th Jun 2007 21:50
Oh.. right. I didn't notice that so far.
I'll have to fix that.. I think I could just use the line-command then. Would be the same.. except the alpha-value. We will see. ^^ Thanks.

Visit the DBPro - Speed up your game-Thread. http://forum.thegamecreators.com/?m=forum_view&t=88661&b=1

Login to post a reply

Server time is: 2024-11-22 18:41:08
Your offset time is: 2024-11-22 18:41:08