• Welcome to Dark Bit Factory & Gravity.
 

FB triangle

Started by rain_storm, February 06, 2007

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rain_storm

Why is FB choking on triangle #,# to #,# to #,# ???????  the help files dont even have an entry for tris, Ah not to worry I'm not about to give up yet I should really try startin with hello world but I always cut tothe chase lol It appears very C like at first glance I hate C with a passion but I love the inline assembler option I think thats cool its like a get out of jail free card that yabasic really couldve used

Challenge Trophies Won:

Jim

Because there's no triangle command in freebasic.
http://www.freebasic.net/wiki/wikka.php?wakka=DocToc

There are several triangle routines posted on this forum, if you spec one up I'll write one for you if not.
Are you just using fbgfx?

Also, FB is a bit different, say you have
rect 10,10 to 100,100
in yabasic,  that would likely look like
rect(10,10,100,100)
in FB.  There's no rect command either.

That was the great advantage of PS2 yabasic - having all those built in graphics commands.

Jim
Challenge Trophies Won:

rain_storm

Like function calls I can dig it. I think Im gonna hunt down a triangle routine and start there this is gonna take some gettin used to but the speeds are fantastic so it will be worth it

Challenge Trophies Won:

DrewPee

rain_storm

Not sure if this helps but my latest code draws rectangles using tinyptc? i need to post another couple of files tonight so anybody can run it, but you can look at the code if you want now.

Take a look at the DrawRedOne or DrawGreenOne or . . . you get the picture . . . these routines draw triangles in each of the four corners of the screen.

Drew
DrewPee
aka Falcon of The Lost Boyz (Amiga)
Ex-Amiga Coder and Graphic Designer
Administrator of > www.retrocomputermuseum.co.uk

Shockwave

There is a triangle routine in my recent topic I posted in this forum (it's a sticky), the lib contains a filled triangle, it's fast too.
Shockwave ^ Codigos
Challenge Trophies Won:

rain_storm

I spotted that last night still feeling my way through the basics. I got a test program up and runnin that draws lines to the screen. I like some points of freebasic but I am still much more happy coding in yabasic. the main reason Im tryin it is because the speed, it shouldnt be too long til I post somethin in FB

Challenge Trophies Won: