some more gstest work

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1616 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2008-12-20 23:13:39 +00:00
parent d640dec401
commit 347da362f1
7 changed files with 25 additions and 4 deletions

View File

@ -43,7 +43,7 @@ class GLWindow {
int GetYoff() {return yOffset;}
int GetXoff() {return xOffset;}
virtual bool valid() { return false; }
static bool valid() { return false; }
// bool GLwindow(SVideoInitialize &_VideoInitialize, int _iwidth, int _iheight) {};
// setResolution
// resolution iter

View File

@ -30,6 +30,7 @@ BEGIN_EVENT_TABLE(ConfigDialog,wxDialog)
EVT_CHECKBOX(ID_RENDERTOMAINWINDOW, ConfigDialog::GeneralSettingsChanged)
EVT_COMBOBOX(ID_FULLSCREENCB, ConfigDialog::GeneralSettingsChanged)
EVT_COMBOBOX(ID_WINDOWRESOLUTIONCB, ConfigDialog::GeneralSettingsChanged)
EVT_COMBOBOX(ID_RENDERBACKEND, ConfigDialog::GeneralSettingsChanged)
EVT_COMBOBOX(ID_ALIASMODECB, ConfigDialog::GeneralSettingsChanged)
EVT_CHOICE(ID_MAXANISOTROPY, ConfigDialog::GeneralSettingsChanged)
EVT_CHECKBOX(ID_FORCEFILTERING, ConfigDialog::GeneralSettingsChanged)
@ -350,7 +351,7 @@ void ConfigDialog::GeneralSettingsChanged(wxCommandEvent& event)
strcpy(g_Config.iWindowedRes, m_WindowResolutionCB->GetValue().mb_str() );
break;
case ID_RENDERBACKEND:
strcpy(g_Config.iBackend, m_RenderBackend->GetValue().mb_str() );
strcpy(g_Config.iBackend, m_RenderBackend->GetValue().mb_str());
break;
case ID_FORCEFILTERING:
g_Config.bForceFiltering = m_ForceFiltering->IsChecked();

View File

@ -15,7 +15,8 @@ public:
virtual bool PeekMessages();
virtual void Update();
virtual bool MakeCurrent();
static bool valid() { return true; }
~SDLWindow();
SDLWindow(int _iwidth, int _iheight);

View File

@ -23,6 +23,7 @@ public:
virtual void Update();
virtual bool MakeCurrent();
static bool valid() { return true; }
~WXGLWindow();
WXGLWindow(int _iwidth, int _iheight);

View File

@ -30,7 +30,8 @@ public:
virtual bool PeekMessages();
virtual void Update();
virtual bool MakeCurrent();
static bool valid() { return true; }
~X11Window();
X11Window(int _iwidth, int _iheight);
};

View File

@ -110,3 +110,16 @@ int OpenGL_GetXoff() {
int OpenGL_GetYoff() {
return glWin->GetYoff();
}
void OpenGL_AddBackends(ConfigDialog *frame) {
if(SDLWindow::valid())
frame->AddRenderBackend("SDL");
if(X11Window::valid())
frame->AddRenderBackend("X11");
if(WXGLWindow::valid())
frame->AddRenderBackend("WXGL");
}
void OpenGL_AddResolutions(ConfigDialog *frame) {
// TODO get resolution iter
}

View File

@ -20,6 +20,7 @@
#include "Config.h"
#include "pluginspecs_video.h"
#include "GUI/ConfigDlg.h"
#include "GLWindow.h"
// backends
#include "SDLWindow.h"
@ -41,6 +42,9 @@
#define GL_REPORT_ERRORD()
#endif
void OpenGL_AddBackends(ConfigDialog *frame);
void OpenGL_AddResolutions(ConfigDialog *frame);
// TODO old interface removal
bool OpenGL_Create(SVideoInitialize &_VideoInitialize, int _width, int _height);
bool OpenGL_MakeCurrent();