[fpc-pascal] Re: fpGUI powered by OpenGL

Darius Blaszyk dhkblaszyk at zeelandnet.nl
Thu Dec 23 00:15:13 CET 2010


On Thu, 2010-12-23 at 10:06 +1100, Paul Nicholls wrote:
> "Darius Blaszyk" <dhkblaszyk at zeelandnet.nl> wrote 
> in message news:1292870518.1851.35.camel at darius-desktop...
> > On Mon, 2010-12-20 at 18:58 +0100, Darius Blaszyk wrote:
> >> > The above explains why it is useful for an application developer to
> >> > use an openGL backend.
> >> >
> >> > It does not explain the following: Since fpGUI already has two
> >> > backends (afaik, X and winap), why can't openGL a third one? Did you
> >> > change the way fpGUI interfaces with its backend? Is this change so
> >> > incompatible with the current backends, that they cannot be modified?
> >>
> >> The changes I think are pretty incompatible. This is because the GLut
> >> library also provides messaging, whereas in fpGUI the messages are
> >> implemented outside of the backend. Therefore hacks are needed to keep
> >> the drawing messages coming correctly. With a pascal context library
> >> everything could be merged seamless I suppose.
> >
> > I've been badly mistaking. With some minor adjustments it will be
> > possible to create an OpenGL back-end most probably. At least to a
> > higher degree that I was proclaiming previously. I've now been able to
> > hook most fpGUI messages to GLut.
> >
> > Regards, Darius
> >
> 
> Hi Darius, nicely done :)
> 
> I for one, would be interested in the code :)

Hi Paul,

I've cleaned up the code and integrated it more nicely with the existing
implementation. It runs now on Linux and Win32. However still struggling
with the message loop which is implemented differently in GLut. 
As for the code, perfectly happy to share although I don't know where to
put it. I will ask Graeme if he can create a branch or something. Will
let you know.

Regards, Darius




More information about the fpc-pascal mailing list