Hi,

I've just updated that article (along with other articles on the wiki)
to reflect agar-1.4.

I wouldn't recommend staying with 1.3. Integration into existing SDL/gl
applications works just as well in 1.4, but some (trivial) changes are
needed to the event loop. Most importantly, event processing is done
in a "driver-independent" fashion, so you need use AG_PendingEvents()
to check for events, AG_GetNextEvent() to retrieve them, and then
AG_ProcessEvent() to process them. This is documented under:
http://libagar.org/man3/AG_Driver.

On Sun, Apr 11, 2010 at 11:13:40AM -0400, Tim Oertel wrote:
> 
> I've been trying to integrate agar with an existing SDL/opengl program
> of mine.  I wasn't getting too far, so backed off that for the moment,
> and tried to just get OpenGL working with agar.
> 
> I was trying to follow: 
> http://wiki.libagar.org/wiki/Integrating_Agar_in_an_existing_GL_application
> but that seems to be quite a bit out of date (compared with svn trunk).
> 
> I replaced most of the MyEventLoop() code with the MyEventLoop() code from 
> the
> customeventloop in the demos.
> 
> I got it to compile, but it doesn't display any opengl stuff, and the one 
> window that
> seems to be displayed doesn't respond to the mouse...
> 
> (I've attached my version for reference.)
> 
> Is there a better starting point?  My goal is to use agar for widgets on top
> of my SDL/opengl program.  I'd prefer to continue to use the SDL interface,
> so perhaps I'd be better off using agar 1.3 (just a guess) instead?
> 
> 


> _______________________________________________
> Agar mailing list
> [email protected]
> http://libagar.org/lists.html


_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to