Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple Graphics Routines with SDL
#1
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
Reply
#2
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]
Reply
#3
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.
ngelo Mottola - EC++
Reply
#4
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)