scummvm/backends/platform/ds/dsmain.h

74 lines
1.9 KiB
C
Raw Normal View History

/* 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 _DSMAIN_H
#define _DSMAIN_H
2017-11-14 23:00:56 +00:00
#define FORBIDDEN_SYMBOL_ALLOW_ALL
#include <nds.h>
#include "osystem_ds.h"
namespace DS {
// Video
void displayMode8Bit(); // Switch to 8-bit mode5
void displayMode16Bit(); // Switch to 16-bit mode5
// Get address of current back buffer
u16 * get16BitBackBuffer();
void setTalkPos(int x, int y);
void setTopScreenTarget(int x, int y);
void setTopScreenZoom(int percentage);
2020-08-06 15:04:24 +01:00
// Events
void VBlankHandler();
Common::Point transformPoint(uint16 x, uint16 y, bool isOverlayShown);
2020-08-11 17:37:26 +01:00
Common::Point warpMouse(int penX, int penY, bool isOverlayShown);
// Shake
void setShakePos(int shakeXOffset, int shakeYOffset);
// Options
2020-08-06 15:04:24 +01:00
void setGameScreenSwap(bool enable);
// Display
bool getIsDisplayMode8Bit();
void setGameSize(int width, int height);
int getGameWidth();
int getGameHeight();
2020-08-11 22:28:25 +01:00
void initHardware();
// Fast RAM allocation (ITCM)
void fastRamReset();
void* fastRamAlloc(int size);
} // End of namespace DS
int cygprofile_getHBlanks();
#endif