Posts: 235
Threads: 30
Joined: Jun 2002
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?
url=http://www.smithcosoft.com]SmithcoSoft Creations[/url]
"If you make it idiot proof, someone will make a better idiot" - Murphy's Law
Posts: 658
Threads: 71
Joined: Sep 2003
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
url]http://fbide.sourceforge.net/[/url]
Posts: 268
Threads: 9
Joined: Dec 2004
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.
Posts: 235
Threads: 30
Joined: Jun 2002
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]
url=http://www.smithcosoft.com]SmithcoSoft Creations[/url]
"If you make it idiot proof, someone will make a better idiot" - Murphy's Law