using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace BansheeEngine { /// /// Marks a range of characters in a font. /// [StructLayout(LayoutKind.Sequential)] public struct CharRange { public UInt32 start; public UInt32 end; } /// /// Font resource containing data about textual characters and how to render text. /// public sealed class Font : Resource // TODO - Dummy class { /// /// Creates a new font resource. For runtime use only. /// /// Should the constructor also create the native interop object. internal Font(bool constructNative) { if (constructNative) Internal_CreateInstance(this); } [MethodImpl(MethodImplOptions.InternalCall)] private static extern void Internal_CreateInstance(Font instance); } }