2012-11-01 15:19:01 +00: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 22:01:49 +00:00
|
|
|
// the Free Software Foundation, version 2.0 or later versions.
|
2012-11-01 15:19:01 +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 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
|
|
|
|
|
|
|
|
void __DisplayInit();
|
2012-12-28 10:22:39 +00:00
|
|
|
void __DisplayDoState(PointerWrap &p);
|
2012-12-25 14:28:34 +00:00
|
|
|
void __DisplayShutdown();
|
2012-11-01 15:19:01 +00:00
|
|
|
|
|
|
|
void Register_sceDisplay();
|
2012-11-19 13:16:37 +00:00
|
|
|
|
|
|
|
// will return true once after every end-of-frame.
|
|
|
|
bool __DisplayFrameDone();
|
2012-12-02 23:44:23 +00:00
|
|
|
|
2013-01-14 00:35:34 +00:00
|
|
|
// Get information about the current framebuffer.
|
|
|
|
bool __DisplayGetFramebuf(u8 **topaddr, u32 *linesize, u32 *pixelFormat, int mode);
|
|
|
|
|
2012-12-02 23:44:23 +00:00
|
|
|
typedef void (*VblankCallback)();
|
2012-12-28 10:22:39 +00:00
|
|
|
// Listen for vblank events. Only register during init.
|
2012-12-02 23:44:23 +00:00
|
|
|
void __DisplayListenVblank(VblankCallback callback);
|
2013-04-07 20:43:23 +00:00
|
|
|
|
|
|
|
void __DisplayGetDebugStats(char stats[2048]);
|
2013-08-19 20:05:55 +00:00
|
|
|
void __DisplayGetFPS(float *out_vps, float *out_fps, float *out_actual_fps);
|
2013-11-15 16:16:03 +00:00
|
|
|
void __DisplayGetVPS(float *out_vps);
|
2013-05-20 03:20:41 +00:00
|
|
|
void __DisplayGetAveragedFPS(float *out_vps, float *out_fps);
|
2013-12-02 16:24:20 +00:00
|
|
|
int __DisplayGetVCount();
|
|
|
|
int __DisplayGetFlipCount();
|
2014-02-17 12:46:57 +00:00
|
|
|
|
2014-06-14 21:55:16 +00:00
|
|
|
// Call this when resuming to avoid a small speedup burst
|
|
|
|
void __DisplaySetWasPaused();
|
|
|
|
|
|
|
|
void Register_sceDisplay_driver();
|