diff options
Diffstat (limited to 'engines/sword2/d_draw.cpp')
-rw-r--r-- | engines/sword2/d_draw.cpp | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/engines/sword2/d_draw.cpp b/engines/sword2/d_draw.cpp deleted file mode 100644 index 3e23c4a8af..0000000000 --- a/engines/sword2/d_draw.cpp +++ /dev/null @@ -1,73 +0,0 @@ -/* Copyright (C) 1994-1998 Revolution Software Ltd. - * Copyright (C) 2003-2006 The ScummVM project - * - * 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. - * - * $URL$ - * $Id$ - */ - -#include "common/stdafx.h" -#include "common/system.h" - -#include "sword2/sword2.h" -#include "sword2/mouse.h" -#include "sword2/screen.h" - -namespace Sword2 { - -/** - * @return the graphics detail setting - */ - -int8 Screen::getRenderLevel() { - return _renderLevel; -} - -void Screen::setRenderLevel(int8 level) { - _renderLevel = level; - - switch (_renderLevel) { - case 0: - // Lowest setting: no fancy stuff - _renderCaps = 0; - break; - case 1: - // Medium-low setting: transparency-blending - _renderCaps = RDBLTFX_SPRITEBLEND; - break; - case 2: - // Medium-high setting: transparency-blending + shading - _renderCaps = RDBLTFX_SPRITEBLEND | RDBLTFX_SHADOWBLEND; - break; - case 3: - // Highest setting: transparency-blending + shading + - // edge-blending + improved stretching - _renderCaps = RDBLTFX_SPRITEBLEND | RDBLTFX_SHADOWBLEND | RDBLTFX_EDGEBLEND; - break; - } -} - -/** - * Fill the screen buffer with palette colour zero. Note that it does not - * touch the menu areas of the screen. - */ - -void Screen::clearScene() { - memset(_buffer + MENUDEEP * _screenWide, 0, _screenWide * RENDERDEEP); - _needFullRedraw = true; -} - -} // End of namespace Sword2 |