Qbasicnews.com

Full Version: QB Graphics for FB, preview release with source code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Here it is, finally:
qbgfx4fb_0.01a.zip (170 KB)

It uses SDL, so you'll need SDL.dll. If you don't already have it, here's a link to download it.

Enough people cared about style for LINE, so I added it. There's no documentation yet, but read readme.html. There are also a few quick examples demos.
Awesome, can i start adding the parser module for them now? ;)

PRINT in gfx mode looks really cool.
Quote:Awesome, can i start adding the parser module for them now? Wink
Definitely Smile
Oooh yeah, this is excellent... Thanks! Tongue
awesome sterling! Great job!
call me stupid, but i can't get it working for me. as a test i thought i'd try to compile one of your primitives test... i put all the .bi files in the freebasic folder, changed the '$include for sdl from sdl/sdl.bi to inc/sdl/sdl.bi but it doesn't seem to want to work for me. Help appreciated for this noob. Tongue
Quote:call me stupid, but i can't get it working for me. as a test i thought i'd try to compile one of your primitives test... i put all the .bi files in the freebasic folder, changed the '$include for sdl from sdl/sdl.bi to inc/sdl/sdl.bi but it doesn't seem to want to work for me. Help appreciated for this noob. :P
There's a .bat file that shows how to compile them, "compile.bat". It puts "-i .\" in the command line so that you don't have to copy the bi files anywhere. They also need "-s gui".

Sorry, I probably should have done more to show how to compile them properly then just including that bat file - I'll update the readme.
Whoa. This thing rocks. I'm getting 2,320,000 psets per second with 8-bit mode. :o

The number in 32-bit isn't nearly as high. It's only about 600k per second - which happens to be faster than I could ever get with POKE on screen 13. Big Grin
Quote:Whoa. This thing rocks. I'm getting 2,320,000 psets per second with 8-bit mode. :o
Thanks, but I can't take credit for that. The pset code is from the SDL_gfx library. In fact, straight SDL_gfx would be faster, because it doesn't take floating point arguments for the coordinates or do viewport/window mapping, etc.

Boxes and filled boxes, on the other hand, should be faster than SDL_gfx because I take advantage of SDL's hardware acceleration support, while SDL_gfx doesn't.
cool. Smile

Just a note, I'm pretty sure you know this already, but print will only support strings.
Pages: 1 2 3 4