GDC 2006 2D Physics Demo for D
Jarrett Billingsley
kb3ctd2 at yahoo.com
Tue Oct 31 07:09:40 PST 2006
"Olli Aalto" <oaalto at gmail.com> wrote in message
news:ei7088$2vl4$1 at digitaldaemon.com...
> The SDL_DOUBLEBUF and SDL_Flip() are not used in OpenGL mode. The
> SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1) and SDL_GL_SwapBuffers() are
> used instead respectively. I haven't looked at the code yet, but I believe
> those are used there.
>
> As what comes to the vsync you could try
> SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1)[1]. Put it before the call to
> SDL_SetVideoMode().
Crap! The version of SDL that Derelict (or at least the Derelict that comes
with Clay's demo) is 1.2.0, and SDL_GL_SWAP_CONTROL is only available
starting with 1.2.10. Have to do some more fiddling this afternoon..
More information about the Digitalmars-d-announce
mailing list