Dark Bit Factory & Gravity
PROGRAMMING => Freebasic => Topic started by: rain_storm on February 06, 2007
-
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
-
Because there's no triangle command in freebasic.
http://www.freebasic.net/wiki/wikka.php?wakka=DocToc (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
-
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
-
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
-
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.
-
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