ALL: Drop setupScreen API, use new initGraphics3d from engine API.
Enabled system API for begin/end gfx transactions, initSize, setGraphicsMode. Function setGraphicsMode will use optional params to trigger 3d rendering and switch to proper SDL Gfx manager.
This commit is contained in:
parent
a38148e428
commit
d8f2040dba
30 changed files with 347 additions and 222 deletions
|
@ -69,8 +69,8 @@ int ModularGraphicsBackend::getDefaultGraphicsMode() const {
|
|||
return _graphicsManager->getDefaultGraphicsMode();
|
||||
}
|
||||
|
||||
bool ModularGraphicsBackend::setGraphicsMode(int mode) {
|
||||
return _graphicsManager->setGraphicsMode(mode);
|
||||
bool ModularGraphicsBackend::setGraphicsMode(int mode, uint flags) { // ResidualVM
|
||||
return _graphicsManager->setGraphicsMode(mode, flags); // ResidualVM
|
||||
}
|
||||
|
||||
int ModularGraphicsBackend::getGraphicsMode() const {
|
||||
|
@ -125,11 +125,6 @@ Common::List<Graphics::PixelFormat> ModularGraphicsBackend::getSupportedFormats(
|
|||
|
||||
#endif
|
||||
|
||||
// ResidualVM specific method
|
||||
void ModularGraphicsBackend::setupScreen(uint screenW, uint screenH, bool fullscreen, bool accel3d) {
|
||||
_graphicsManager->setupScreen(screenW, screenH, fullscreen, accel3d);
|
||||
}
|
||||
|
||||
// ResidualVM specific method
|
||||
Graphics::PixelBuffer ModularGraphicsBackend::getScreenPixelBuffer() {
|
||||
return _graphicsManager->getScreenPixelBuffer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue