Re: [Open-graphics] Address space

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Timothy Miller
Date: Friday, August 25, 2006 - 12:09 pm

On 8/25/06, Jon Smirl <jonsmirl@gmail.com> wrote:

Here's the approach I have in mind (which I think I may be copying
from somewhere):

Each packet has a 32-bit header.  Some bits are reserved for the
packet type, some are reserved for the packet length (not everything
submitted--just this one command), and the rest depend on the packet
type.  For a drawing command packet, those remaining bits will usually
be used as flags to indicate which of the many possible attributes are
also contained in subsequent words of the packet header.

Consider a 2D solid rectangle fill.  Upper left corner (32 bits) and
width/height (32 bits) are mandatory.  But there are attributes, like
foreground color, that are optional because it's common to draw a
bunch of rects all of the same color.  Futhermore, the packet length
is used to indicate how many rectangles (all with the same set of
attributes) are in the packet.

You might define another packet type that lets you specify multiple
rectangles, but all with their own attributes (which ones being
specified again by the flags in the header).

We'll define a set that makes sense to us.  Some of the packet types
will exist just to set some of the more obscure attributes in an
efficient way.
_______________________________________________
Open-graphics mailing list
Open-graphics@duskglow.com
http://lists.duskglow.com/mailman/listinfo/open-graphics
List service provided by Duskglow Consulting, LLC (www.duskglow.com)
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Open-graphics] Address space, Jon Smirl, (Fri Aug 25, 7:10 am)
Re: [Open-graphics] Address space, Timothy Miller, (Fri Aug 25, 8:03 am)
Re: [Open-graphics] Address space, Jon Smirl, (Fri Aug 25, 8:27 am)
Re: [Open-graphics] Address space, Timothy Miller, (Fri Aug 25, 8:36 am)
Re: [Open-graphics] Address space, Jon Smirl, (Fri Aug 25, 9:19 am)
Re: [Open-graphics] Address space, Timothy Miller, (Fri Aug 25, 9:39 am)
Re: [Open-graphics] Address space, Jon Smirl, (Fri Aug 25, 10:10 am)
Re: [Open-graphics] Address space, Timothy Miller, (Fri Aug 25, 10:31 am)
Re: [Open-graphics] Address space, Jon Smirl, (Fri Aug 25, 11:06 am)
Re: [Open-graphics] Address space, Timothy Miller, (Fri Aug 25, 11:12 am)
Re: [Open-graphics] Address space, Jon Smirl, (Fri Aug 25, 11:34 am)
Re: [Open-graphics] Address space, Timothy Miller, (Fri Aug 25, 11:40 am)
Re: [Open-graphics] Address space, Jon Smirl, (Fri Aug 25, 11:59 am)
Re: [Open-graphics] Address space, Timothy Miller, (Fri Aug 25, 12:09 pm)
Re: [Open-graphics] Address space, Jon Smirl, (Fri Aug 25, 12:30 pm)
Re: [Open-graphics] Address space, Timothy Miller, (Fri Aug 25, 12:38 pm)
Re: [Open-graphics] Address space, Hamish, (Fri Aug 25, 1:31 pm)
Re: [Open-graphics] Address space, Timothy Miller, (Fri Aug 25, 2:07 pm)