UrhoEngine.cs 458 B

1234567891011121314151617181920
  1. using System;
  2. using System.Linq;
  3. using System.Runtime.InteropServices;
  4. namespace Urho.Droid
  5. {
  6. public static class UrhoEngine
  7. {
  8. [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  9. public delegate int SdlCallback(IntPtr context);
  10. [DllImport("mono-urho", CallingConvention = CallingConvention.Cdecl)]
  11. internal static extern void RegisterSdlLauncher(SdlCallback callback);
  12. public static void Init()
  13. {
  14. Application.EngineInited = true;
  15. }
  16. }
  17. }