Author Topic: FB triangle  (Read 3892 times)

0 Members and 1 Guest are viewing this topic.

Offline rain_storm

  • Here comes the Rain
  • DBF Aficionado
  • ******
  • Posts: 3088
  • Karma: 182
  • Rain never hurt nobody
    • View Profile
    • org_100h
FB triangle
« 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
« Last Edit: February 06, 2007 by Jim »

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: FB triangle
« Reply #1 on: February 06, 2007 »
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:

Offline rain_storm

  • Here comes the Rain
  • DBF Aficionado
  • ******
  • Posts: 3088
  • Karma: 182
  • Rain never hurt nobody
    • View Profile
    • org_100h
Re: FB triangle
« Reply #2 on: February 07, 2007 »
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:

Offline DrewPee

  • I Toast Therefore I am
  • Pentium
  • *****
  • Posts: 563
  • Karma: 25
  • Eat Cheese - It's good for you!
    • View Profile
    • Retro Computer Museum
Re: FB triangle
« Reply #3 on: February 07, 2007 »
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

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: FB triangle
« Reply #4 on: February 07, 2007 »
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:

Offline rain_storm

  • Here comes the Rain
  • DBF Aficionado
  • ******
  • Posts: 3088
  • Karma: 182
  • Rain never hurt nobody
    • View Profile
    • org_100h
Re: FB triangle
« Reply #5 on: February 07, 2007 »
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: