Index: [thread] [date] [subject] [author]
  From: Jon M. Taylor <taylorj@ecs.csus.edu>
  To  : ggi-develop@eskimo.com
  Date: Fri, 28 Aug 1998 10:02:15 -0700 (PDT)

Re: LibGGI2D, LibGGI3D and targets

On Thu, 27 Aug 1998, MenTaLguY wrote:

> On Wed, 26 Aug 1998, Jon M. Taylor wrote:
> 
> > 	I've been looking at how to start coding some LibGGI3D display
> > targets, and in the course of exploring the existing LibGGI targets I saw
> > that LibGGI2D doesn't have any targets per se.  All the targets are part
> > of LibGGI itself.  Why is this?  IMHO, the targets, to the extent that
> > they handle 2D framebuffer rendering, should be part of LibGGI2D. 
> > Otherwise, I either have to go ahead and create separate LibGGI3D display
> > targets (which gives LibGGI2D and LibGGI3D inconsistent structure) or I
> > have to add LibGGI3D code to the LibGGI targets (which adds bloat
> > unnecessarily).  The demos in lib/libggi/demos all seem to be 2D-oriented
> > - do they belong in lib/libggi2d/demos?  Please help me understand this.
> 
> additional support for extension APIs (i.e. ggi2d and ggi3d) is loaded by
> the target, according to what the target's idea of the underlying junk is.

 
> Last I looked, it was set up such that if the stub "blah-foo-stub" was
> loaded into the visual by the target, indicating some specific support, when
> the 2d API was activated for that visual, LibGGI itself would look for a
> "blah-foo-stub-2d" and load that.  How exactly does that work with the new
> extension mechanism?

	I see, so in this case there would only be one fbdev target for
all of the LibGGI[xx] system, and the [xx] libraries would use
"sub-targets" within the main targets?  My problem with this approach is
that it breaks the clean separation of the libraries.  A 3D target should
not have 2D features, the 3D library should target LibGGI2D instead.  But
I am not yet sure of all the ramifications of choosing either approach.  I
think I am just going to do completely separate LibGGI3D targets for now. 
If we later decide that another scheme should be used, we can just
rearrange things at that point.

Jon

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

Index: [thread] [date] [subject] [author]