Added BaseSdlGraphicsManager. Added GLTexture.
svn-id: r50795
This commit is contained in:
parent
386785e2b8
commit
85034dc730
12 changed files with 465 additions and 53 deletions
|
@ -32,6 +32,8 @@
|
|||
#include "backends/events/sdl/sdl-events.h"
|
||||
#include "backends/mutex/sdl/sdl-mutex.h"
|
||||
#include "backends/timer/sdl/sdl-timer.h"
|
||||
//#include "backends/graphics/sdl/sdl-graphics.h"
|
||||
#include "backends/graphics/openglsdl/openglsdl-graphics.h"
|
||||
|
||||
#include "icons/scummvm.xpm"
|
||||
|
||||
|
@ -81,8 +83,13 @@ void OSystem_SDL::initBackend() {
|
|||
_mixerManager->init();
|
||||
}
|
||||
|
||||
if (_graphicsManager == 0)
|
||||
_graphicsManager = new SdlGraphicsManager();
|
||||
if (_graphicsManager == 0) {
|
||||
// Changed to OpenGL for testing
|
||||
//_graphicsManager = new SdlGraphicsManager();
|
||||
_graphicsManager = new OpenGLSDLGraphicsManager();
|
||||
|
||||
((OpenGLSDLGraphicsManager *)_graphicsManager)->init();
|
||||
}
|
||||
|
||||
if (_audiocdManager == 0)
|
||||
_audiocdManager = new SdlAudioCDManager();
|
||||
|
@ -234,9 +241,9 @@ void OSystem_SDL::setupIcon() {
|
|||
free(icon);
|
||||
}
|
||||
|
||||
SdlGraphicsManager *OSystem_SDL::getGraphicsManager() {
|
||||
BaseSdlGraphicsManager *OSystem_SDL::getGraphicsManager() {
|
||||
assert(_graphicsManager);
|
||||
return (SdlGraphicsManager *)_graphicsManager;
|
||||
return (BaseSdlGraphicsManager *)_graphicsManager;
|
||||
}
|
||||
|
||||
bool OSystem_SDL::pollEvent(Common::Event &event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue