2009-01-30 03:35:47 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2014-02-18 01:34:18 +00:00
|
|
|
*
|
2009-01-30 03:35:47 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2014-02-18 01:34:18 +00:00
|
|
|
*
|
2009-01-30 03:35:47 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BACKENDS_BASE_BACKEND_H
|
|
|
|
#define BACKENDS_BASE_BACKEND_H
|
|
|
|
|
|
|
|
#include "common/system.h"
|
2011-06-08 10:13:10 +00:00
|
|
|
#include "common/events.h"
|
2009-01-30 03:35:47 +00:00
|
|
|
|
2020-10-10 14:48:50 +00:00
|
|
|
/**
|
|
|
|
* Subclass of OSystem that contains default implementations of functions that would
|
|
|
|
* cause circular dependencies if they were implemented in common/system.cpp
|
|
|
|
*/
|
2011-06-08 12:29:22 +00:00
|
|
|
class BaseBackend : public OSystem {
|
2009-01-30 03:35:47 +00:00
|
|
|
public:
|
2020-10-10 14:17:11 +00:00
|
|
|
virtual void initBackend() override;
|
2011-06-06 13:51:46 +00:00
|
|
|
|
2021-01-05 22:54:53 +00:00
|
|
|
using OSystem::setScaler;
|
|
|
|
virtual bool setScaler(const char *name, int factor) override final;
|
2020-10-10 14:17:11 +00:00
|
|
|
virtual void displayMessageOnOSD(const Common::U32String &msg) override;
|
|
|
|
virtual void displayActivityIconOnOSD(const Graphics::Surface *icon) override {}
|
|
|
|
virtual void fillScreen(uint32 col) override;
|
2009-01-30 03:35:47 +00:00
|
|
|
};
|
|
|
|
|
2020-08-02 20:07:58 +00:00
|
|
|
class EventsBaseBackend : virtual public BaseBackend, Common::EventSource {
|
2011-06-08 12:29:22 +00:00
|
|
|
public:
|
2020-08-02 20:07:58 +00:00
|
|
|
virtual void initBackend();
|
2011-06-08 12:29:22 +00:00
|
|
|
};
|
|
|
|
|
2009-01-30 03:35:47 +00:00
|
|
|
|
|
|
|
#endif
|