light weight graphic library

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
mcheung63
Member
Member
Posts: 175
Joined: Thu Jun 22, 2006 8:33 am
Location: Hong Kong
Contact:

light weight graphic library

Post by mcheung63 »

Hi
Any light weight graphical library work with linear framebuffer?
thanks
from Peter ([email protected])
svdmeer
Member
Member
Posts: 87
Joined: Tue May 06, 2008 9:32 am
Location: The Netherlands

Post by svdmeer »

Maybe you can check svgalib.

It wouldn't be hard to write some functions by yourself.
User avatar
lukem95
Member
Member
Posts: 536
Joined: Fri Aug 03, 2007 6:03 am
Location: Cambridge, UK

Post by lukem95 »

the basic ones are easy, and it's even easy to optimise them.

some useful resources:
the Wiki
FreeVGA (google it)
http://www.brackeen.com/vga/
~ Lukem95 [ Cake ]
Release: 0.08b
Image
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

Apart from svgalib all the pointers assume that you actually plan on writing your own functions. I have no experience with svgalib, but I'd guess I'd be faster off writing my own code rather than porting some library i've never used. If you're unfamiliar with all the math included, then porting may be the better option.

Apart from that, writing your own is IMO always a good exercise even if its the slower route.
Let me point you you to Michael Abrash' graphics programming black book, which contains both working code and explanations, from plotting pixels to writing 3D renderers. Best thing is, you can download a copy for free :wink:

Edit: there's graphics code in my OS' code base, if you want to translate from basic you can have a go at that. It's mostly VGA oriented though.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply