On Mon, 6 Mar 2000, James Simmons wrote:

> 
> Hi!!
> 
>    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.

> 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.

Jon

---
'Cloning and the reprogramming of DNA is the first serious step in 
becoming one with God.'
        - Scientist G. Richard Seed

Reply via email to