Graphics.cs 374 B

12345678910111213141516
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace Urho
  4. {
  5. public partial class Graphics
  6. {
  7. [DllImport(Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  8. static extern IntPtr Graphics_GetSdlWindow(IntPtr graphics);
  9. /// <summary>
  10. /// Pointer to SDL window
  11. /// </summary>
  12. public IntPtr SdlWindow => Graphics_GetSdlWindow(Handle);
  13. }
  14. }