On Mon, 18 Jun 2001, Christoph Egger wrote:
> OK, so far. But how can I get the pixelformat of it? Or is a db
> something like a raw buffer stored in VRAM?

db->buffer.plb.pixelformat->*

> > The ResourceRelease is just there to inform other threads that
> > you are currently accessing using the DirectBuffer, so they do
> > not start any accelerator commands.  It doesn't alloc/dealloc
> > anything.
> 
> Looking in libggi's glide-target, I can see, it tries to get a
> buffer space from the glide-driver, so ggiResourceAquire() _does_
> allocate something. And ggiResourceRelease() releases it.

It tries the GLIDE lock on the buffer, and if it is unlocked,
it locks it using GLIDE's locking mechanism.   It doesn't 
*allocate* the buffer.  GLIDE apparently has buffers that have
read/write "modes" and it reserves the right to change the 
address of the buffer when it is switched between
read and write mode.  This means that the read/write pointers
are not guaranteed to be the same after a call to 
ggiResourceAquire; that detail should probably be documented
if it is not already.

--
Brian

Reply via email to