> > I have been looking at Mesa-GGI and libGGI. Do you think it would be
> > possible to add a triangle function?
>
> Yes, but the triangle function is added in an extension library
> because the base LibGGI drawing functions are all basic 2D "essential"
> primitives only. Currently the "triangle drawing" extension library which
> most people use is of course GGIMesa, but LibGGI2D has triangle drawing
> functions as well, and of course there is always LibGGI3D.
Time to put GGImesa in standard tree or make a GGI3D extension?
> > I'm interested in also setting up Z
> > and alpha buffers. How would I go about doing that ?
>
> Depends on whether you are trying to simply allocate some RAM and
> map it into a DirectBuffer, or whether you are trying to directly map a
> hardware Z/alpha buffer. If the first is true, just use malloc() and look
> at how e.g. the Glide target maps DirectBuffers, I think thats the best
> example code for that. If the second is true and you are mapping a
> hardware auxiliary buffer, you will either need to have a kernel driver
> which can let userspace mmap() the physical aperture, or do some suid-root
> /dev/mem mapping tricks like SVGAlib does.
Neither. The SGI approach of not mmaping these buffers. I rather set a
flag to tell the system to use a particular buffer. Sort of what you did
in GGIMesa if I'm seeing it right.
"Look it's a text editor, no it's a OS, no it's Emacs"
James Simmons ____/|
fbdev/gfx developer \ o.O|
http://www.linux-fbdev.org =(_)=
http://linuxgfx.sourceforge.net U