[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfRenderContext",CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr NativeNewContext();
[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfRenderContext",CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeFreeContext(IntPtr context);
[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfGlyphContextMoveTo", CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeMoveTo(IntPtr context, ref Vector2<float> to);
[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfGlyphContextQuadraticBezierTo",
CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeQuadraticBezierTo(IntPtr context, ref Vector2<float> control,
ref Vector2<float> to);
[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfGlyphContextCubicBezierTo",
CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeCubicBezierTo(IntPtr context, ref Vector2<float> control1,
ref Vector2<float> control2,
ref Vector2<float> to);
[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfGlyphContextLineTo", CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeLineTo(IntPtr context, ref Vector2<float> to);
[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfRenderContext",CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeEnd(IntPtr context);
[DllImport(Dlls.AeroxWidgetsNative, EntryPoint = "msdfRenderContext",CallingConvention = CallingConvention.Cdecl)]
private static extern void NativeRender(IntPtr context,
[MarshalAs(UnmanagedType.FunctionPtr)] NativeGenerateDelegate onRendered);