(svn r17428) -Codechange: add a function to get the name of a driver

This commit is contained in:
rubidium
2009-09-05 21:26:51 +00:00
parent 0be5e59355
commit bc5241600a
20 changed files with 21 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ public:
/* virtual */ bool ChangeResolution(int w, int h);
/* virtual */ bool ToggleFullscreen(bool fullscreen);
/* virtual */ const char *GetName() const { return "allegro"; }
};
class FVideoDriver_Allegro: public VideoDriverFactory<FVideoDriver_Allegro> {

View File

@@ -27,6 +27,7 @@ public:
/* virtual */ bool ChangeResolution(int w, int h);
/* virtual */ bool ToggleFullscreen(bool fullscreen);
/* virtual */ const char *GetName() const { return "dedicated"; }
};
class FVideoDriver_Dedicated: public VideoDriverFactory<FVideoDriver_Dedicated> {

View File

@@ -30,6 +30,7 @@ public:
/* virtual */ bool ChangeResolution(int w, int h);
/* virtual */ bool ToggleFullscreen(bool fullscreen);
/* virtual */ const char *GetName() const { return "null"; }
};
class FVideoDriver_Null: public VideoDriverFactory<FVideoDriver_Null> {

View File

@@ -27,6 +27,7 @@ public:
/* virtual */ bool ChangeResolution(int w, int h);
/* virtual */ bool ToggleFullscreen(bool fullscreen);
/* virtual */ const char *GetName() const { return "sdl"; }
};
class FVideoDriver_SDL: public VideoDriverFactory<FVideoDriver_SDL> {

View File

@@ -27,6 +27,7 @@ public:
/* virtual */ bool ChangeResolution(int w, int h);
/* virtual */ bool ToggleFullscreen(bool fullscreen);
/* virtual */ const char *GetName() const { return "win32"; }
};
class FVideoDriver_Win32: public VideoDriverFactory<FVideoDriver_Win32> {