Qbasicnews.com

Full Version: Simple Graphics Routines with SDL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How would I go about plotting a single pixel or a line in SDL without using a rect...is it even possible? Also is there anyway to use GFXLib commands inside of an SDL app window?
I don't know how mutch this will help you, but here's my C code for it: http://cvs.sourceforge.net/viewcvs.py/wi...iew=markup
If you use plain SDL, it provides no means to draw pixels nor lines. You just have the framebuffer to play with, blitters and filled rects; you have to code your own pixel and line plotter routines... there are examples about this on the SDL site, under the docs section. There are extension libs out there though that provide you with gfx primitives for SDL, without the need for you to reinvent the wheel, you may want to check out the libraries section on the SDL site.

As for gfxlib, if you use SDL forget about using gfxlib routines, it will just not work.
Quote:I don't know how mutch this will help you, but here's my C code for it: http://cvs.sourceforge.net/viewcvs.py/wi...iew=markup

Actually it does =P

When I get home I'm gonna test some things out, but unless I have other problems, then problem solved...[/quote]