您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
25 行
949 B
25 行
949 B
#pragma once
|
|
|
|
#include "IUnityGraphics.h"
|
|
#include "IUnityInterface.h"
|
|
|
|
namespace UnityUIWidgets {
|
|
typedef void (*VoidCallback)();
|
|
typedef void (*VoidCallbackLong)(long);
|
|
|
|
UNITY_DECLARE_INTERFACE(IUnityUIWidgets) {
|
|
virtual ~IUnityUIWidgets() {}
|
|
|
|
virtual void SetUpdateCallback(VoidCallback callback) = 0;
|
|
virtual void SetVSyncCallback(VoidCallback callback) = 0;
|
|
virtual void SetWaitCallback(VoidCallbackLong callback) = 0;
|
|
virtual void SetWakeUpCallback(VoidCallback callback) = 0;
|
|
virtual void IssuePluginEventAndData(UnityRenderingEventAndData callback,
|
|
int eventId, void* data) = 0;
|
|
virtual void printf_consolev(const char* log, va_list alist) = 0;
|
|
};
|
|
} // namespace UnityUIWidgets
|
|
|
|
UNITY_REGISTER_INTERFACE_GUID_IN_NAMESPACE(0x4C8BE8056B3C41D7ULL,
|
|
0xBC8BF5F2F0AC3532ULL,
|
|
IUnityUIWidgets, UnityUIWidgets)
|