Font.cs 634 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. [StructLayout(LayoutKind.Sequential)]
  7. public struct CharRange
  8. {
  9. public UInt32 start;
  10. public UInt32 end;
  11. }
  12. public sealed class Font : Resource // TODO - Dummy class
  13. {
  14. internal Font(bool constructNative)
  15. {
  16. if (constructNative)
  17. Internal_CreateInstance(this);
  18. }
  19. [MethodImpl(MethodImplOptions.InternalCall)]
  20. private static extern void Internal_CreateInstance(Font instance);
  21. }
  22. }