[SDL] sdl+opengl on osx, converting the sample program from c to cpp

Rogelio Nodal rnodal at gmail.com
Fri Jun 20 08:49:31 PDT 2008


Thanks for the correction. That error message of the compiler making a
distinction between SDL_GLattr and int really through me off. Thanks.


On Fri, Jun 20, 2008 at 11:27 AM, Pierre Phaneuf <pphaneuf at gmail.com> wrote:

> On Fri, Jun 20, 2008 at 11:18 AM, Rogelio Nodal <rnodal at gmail.com> wrote:
>
> >  I don't think you  can just put any interger value there. But like I
> said
> > I'm not expert so I may be wrong.
>
> In C, anywhere you see an enum parameter, you can put any int, or any
> *other* enum, this is not even a warning.
>
> --
> http://pphaneuf.livejournal.com/
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>



-- 
Rogelio Nodal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080620/74e68044/attachment.htm>


More information about the SDL mailing list