2012-11-01 16:19:01 +01:00
|
|
|
// Copyright (c) 2012- PPSSPP 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
|
2012-11-04 23:01:49 +01:00
|
|
|
// the Free Software Foundation, version 2.0 or later versions.
|
2012-11-01 16:19:01 +01: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 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official git repository and contact information can be found at
|
|
|
|
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2017-06-03 14:46:36 -07:00
|
|
|
#include "Core/MemMap.h"
|
|
|
|
|
2012-11-01 16:19:01 +01:00
|
|
|
void __DisplayInit();
|
2012-12-28 02:22:39 -08:00
|
|
|
void __DisplayDoState(PointerWrap &p);
|
2012-12-25 15:28:34 +01:00
|
|
|
void __DisplayShutdown();
|
2012-11-01 16:19:01 +01:00
|
|
|
|
|
|
|
void Register_sceDisplay();
|
2012-11-19 14:16:37 +01:00
|
|
|
|
2013-01-13 16:35:34 -08:00
|
|
|
// Get information about the current framebuffer.
|
2017-06-03 14:46:36 -07:00
|
|
|
bool __DisplayGetFramebuf(PSPPointer<u8> *topaddr, u32 *linesize, u32 *pixelFormat, int mode);
|
|
|
|
void __DisplaySetFramebuf(u32 topaddr, int linesize, int pixelformat, int sync);
|
2013-01-13 16:35:34 -08:00
|
|
|
|
2014-06-14 23:55:16 +02:00
|
|
|
// Call this when resuming to avoid a small speedup burst
|
|
|
|
void __DisplaySetWasPaused();
|
|
|
|
|
2017-06-03 14:46:36 -07:00
|
|
|
void Register_sceDisplay_driver();
|
2022-07-02 19:14:05 +02:00
|
|
|
void __DisplayWaitForVblanks(const char* reason, int vblanks, bool callbacks = false);
|
2022-08-17 16:55:19 +02:00
|
|
|
|
|
|
|
void __DisplaySetFramerate(int value);
|