Hello Carlos,

Actually it IS using SDL internally.  You shouldn't have to do anything special 
to use SDL in version 1.3.3 .  In version 1.4 things will be different though.  
Agar encapsulates the SDL functionality in its own functions.

--Sam



----- Original Message ----
> From: Carlos Yaque <[email protected]>
> To: Samuel Crow <[email protected]>
> Sent: Sunday, May 31, 2009 5:49:45 PM
> Subject: Re: [Agar] Running agar with SDL + OpenGL app
> 
> I've been looking this example but it's not using SDL, so I'm not sure
> what to do. In my code I initialize SDL, and then the agar library.
> The problem is that I dont know if I have to initialize anything else,
> and what to do to render the gui elements, whether I have to set the
> gl matrixes properly, if the rendering functions have to be inside my
> "render" function...
> 
> In fact it's a little bit frustrating going through the documentation,
> it has almost no info on what to do and which order :S
> 
> 2009/5/31 Samuel Crow :
> >
> > Hello Froilan,
> >
> > Look at the example in agar-1.3.3/demos/glview/ as a reference.  It is not 
> compiled by default when you build the package source so you'll probably have 
> to 
> run its configure script.
> >
> >
> > --Sam
> >
> > ----- Original Message ----
> >> From: Froilan 
> >> To: [email protected]
> >> Sent: Sunday, May 31, 2009 9:20:57 AM
> >> Subject: [Agar] Running agar with SDL + OpenGL app
> >>
> >> I'm trying to use Agar with my own SDL application. I just don't know what 
> >> to
> >> do, although I tried lots of things. I've done the typical initialization:
> >>
> >> AG_InitCore("myapp", 0)!=-1
> >> AG_InitVideoSDL(window, AG_VIDEO_OPENGL)!=-1
> >>
> >> But then I just dont know what I've to do... Can anyone help me? I just 
> >> need 
> a
> >> simple example like drawing some text, since I don't know what else do I 
> >> need 
> to
> >> draw the gui on my window.
> >> I have my own loop and the typical drawing function where I write my ogl 
> calls.
> >>
> >> Thanks in advance!
> >>
> >> _______________________________________________
> >> Agar mailing list
> >> [email protected]
> >> http://libagar.org/lists.html
> >
> >
> >
> >
> >



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

Reply via email to