project64/Source/Android/Bridge/JavaBridge.h

42 lines
1.0 KiB
C
Raw Normal View History

#pragma once
#ifdef ANDROID
#include <Project64-core/Plugins/PluginClass.h>
#include <jni.h>
class JavaBridge :
public RenderWindow
{
public:
2017-04-27 22:36:10 +00:00
JavaBridge(JavaVM* vm);
//Render window functions
void GfxThreadInit();
void GfxThreadDone();
void SwapWindow();
//Rom List
void RomListReset(void);
2017-04-27 22:36:10 +00:00
void RomListAddItem(const char * FullFileName, const char * FileName, const char * GoodName, uint32_t TextColor);
void RomListLoaded(void);
2016-11-21 07:02:12 +00:00
void RecentRomsUpdated(void);
//Notification
void DisplayError(const char * Message);
void DisplayMessage(const char * Message, int DisplayTime);
void DisplayMessage2(const char * Message);
2017-04-27 22:36:10 +00:00
void EmulationStarted(void);
void EmulationStopped(void);
private:
JavaBridge(void); // Disable default constructor
JavaBridge(const JavaBridge&); // Disable copy constructor
JavaBridge& operator=(const JavaBridge&); // Disable assignment
JavaVM* m_vm;
jclass m_GalleryActivityClass;
jclass m_NotifierClass;
};
#endif