-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZVISION: Create RenderManager class and move code from image.cpp
- Loading branch information
1 parent
94000e0
commit 6d7541a
Showing
2 changed files
with
76 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,70 @@ | |||
/* 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. | |||
* 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. | |||
* 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 ZVISION_RENDER_MANAGER_H | |||
#define ZVISION_RENDER_MANAGER_H | |||
|
|||
#include "common/types.h" | |||
|
|||
class OSystem; | |||
|
|||
namespace Common { | |||
class String; | |||
} | |||
|
|||
namespace ZVision { | |||
|
|||
class RenderManager { | |||
public: | |||
RenderManager(OSystem *system); | |||
|
|||
public: | |||
enum RenderState { | |||
PANORAMA, | |||
TILT, | |||
FLAT | |||
}; | |||
|
|||
private: | |||
OSystem *_system; | |||
RenderState _renderState; | |||
|
|||
struct { | |||
uint16 fieldOfView; | |||
uint16 linearScale; | |||
} _panoramaOptions; | |||
|
|||
// TODO: See if tilt and panorama need to have separate options | |||
struct { | |||
uint16 fieldOfView; | |||
uint16 linearScale; | |||
} _tiltOptions; | |||
|
|||
bool _needsScreenUpdate; | |||
|
|||
public: | |||
void renderImageToScreen(const Common::String &fileName, uint32 x, uint32 y); | |||
}; | |||
|
|||
} // End of namespace ZVision | |||
|
|||
#endif |