mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 16:49:27 +00:00
Some testgl work
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1812 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
fa3c6c1247
commit
ca3ebe743f
8 changed files with 105 additions and 174 deletions
|
@ -56,15 +56,18 @@ bool OpenGL_Create(SVideoInitialize &_VideoInitialize,
|
|||
g_VideoInitialize.pUpdateFPSDisplay = &UpdateFPSDisplay;
|
||||
|
||||
if (strncasecmp(g_Config.iBackend, "sdl", 10) == 0)
|
||||
glWin = new SDLWindow(width, height);
|
||||
glWin = new SDLWindow();
|
||||
else if (strncasecmp(g_Config.iBackend, "x11", 10) == 0)
|
||||
glWin = new X11Window(width, height);
|
||||
glWin = new X11Window();
|
||||
else if (strncasecmp(g_Config.iBackend, "wxgl", 10) == 0)
|
||||
glWin = new WXGLWindow(width, height);
|
||||
glWin = new WXGLWindow();
|
||||
else
|
||||
PanicAlert("Invalid backend %s", g_Config.iBackend);
|
||||
|
||||
return (glWin?true:false);
|
||||
if (! glWin)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OpenGL_MakeCurrent()
|
||||
|
@ -92,15 +95,15 @@ void OpenGL_Shutdown()
|
|||
}
|
||||
|
||||
u32 OpenGL_GetWidth() {
|
||||
return glWin->GetWidth();
|
||||
return glWin->GetXwin();
|
||||
}
|
||||
|
||||
u32 OpenGL_GetHeight() {
|
||||
return glWin->GetHeight();
|
||||
return glWin->GetYwin();
|
||||
}
|
||||
|
||||
void OpenGL_SetSize(u32 width, u32 height) {
|
||||
glWin->SetSize(width, height);
|
||||
glWin->SetWinSize(width, height);
|
||||
}
|
||||
|
||||
int OpenGL_GetXoff() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue