Ghost Context Refactor

https://developer.blender.org/D643
Separates graphics context creation from window code in Ghost so that they can vary separately.
This commit is contained in:
2014-10-07 15:46:19 -05:00
parent a8705e99ee
commit 8d084e8c8f
236 changed files with 63900 additions and 2614 deletions

View File

@@ -113,12 +113,12 @@ void GPG_Canvas::SetSwapInterval(int interval)
m_window->setSwapInterval(interval);
}
int GPG_Canvas::GetSwapInterval()
bool GPG_Canvas::GetSwapInterval(int& intervalOut)
{
if (m_window)
return m_window->getSwapInterval();
return (bool)m_window->getSwapInterval(intervalOut);
return 0;
return false;
}
void GPG_Canvas::ResizeWindow(int width, int height)