2015-07-28 03:36:17 +00:00
|
|
|
/* Copyright (c) 2013-2015 Jeffrey Pfau
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef PSP2_CONTEXT_H
|
|
|
|
#define PSP2_CONTEXT_H
|
|
|
|
|
2015-07-28 07:59:28 +00:00
|
|
|
#include "psp2-common.h"
|
2015-09-02 04:51:14 +00:00
|
|
|
#include "util/gui.h"
|
2015-07-28 03:36:17 +00:00
|
|
|
|
2015-08-31 00:32:05 +00:00
|
|
|
struct GBAGUIRunner;
|
|
|
|
void GBAPSP2Setup(struct GBAGUIRunner* runner);
|
|
|
|
void GBAPSP2Teardown(struct GBAGUIRunner* runner);
|
2015-07-28 03:36:17 +00:00
|
|
|
|
2015-08-31 00:32:05 +00:00
|
|
|
void GBAPSP2LoadROM(struct GBAGUIRunner* runner);
|
|
|
|
void GBAPSP2UnloadROM(struct GBAGUIRunner* runner);
|
|
|
|
void GBAPSP2PrepareForFrame(struct GBAGUIRunner* runner);
|
|
|
|
void GBAPSP2Draw(struct GBAGUIRunner* runner, bool faded);
|
2015-09-16 06:00:02 +00:00
|
|
|
void GBAPSP2DrawScreenshot(struct GBAGUIRunner* runner, const uint32_t* pixels, bool faded);
|
2015-09-04 06:39:46 +00:00
|
|
|
void GBAPSP2IncrementScreenMode(struct GBAGUIRunner* runner);
|
2015-08-31 00:32:05 +00:00
|
|
|
uint16_t GBAPSP2PollInput(struct GBAGUIRunner* runner);
|
2015-07-28 03:36:17 +00:00
|
|
|
|
|
|
|
#endif
|