Implement SwapInterval for AGL interface

This commit is contained in:
Zakk
2014-01-27 21:11:03 +09:00
committed by Jules Blok
parent ec8e17c50f
commit 0eadc2e2a4
2 changed files with 5 additions and 0 deletions

View File

@ -121,4 +121,8 @@ void cInterfaceAGL::Update()
[GLWin.cocoaCtx update];
}
void cInterfaceAGL::SwapInterval(int Interval)
{
[GLWin.cocoaCtx setValues:(GLint *)&Interval forParameter:NSOpenGLCPSwapInterval];
}