Currently it out of date, because now agar use driver concept. I have been moved (app with OpenGl background like you too) from 1.3.4 to latest svn revision few days ago without many problems. Code now is more clean, but still need access to SDL_Surface of view to toggle fullscreen for example (not sure that it possible toggle on windows and macos by SDL_WM_ToggleFullScreen command).
I see you know about demos/customeventloop, so I think you need comment "#include <SDL.h>" in your example and replace all SDL_ to AG_ events, You may refer to agar gui source code to watch how event work like me. P.S. Believe it will be last so huge changes in agar. Tim Oertel <[email protected]> writes: > 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
