public static unsafe void GetFontDimensions(FontID inFontID, int *outCharWidth, int *outCharHeight, int *outDigitsOnly)
 {
     IL.DeclareLocals(false);
     Guard.NotNull(GetFontDimensionsPtr);
     IL.Push(inFontID);
     IL.Push(outCharWidth);
     IL.Push(outCharHeight);
     IL.Push(outDigitsOnly);
     IL.Push(GetFontDimensionsPtr);
     IL.Emit.Calli(new StandAloneMethodSig(CallingConvention.Cdecl, typeof(void), typeof(FontID), typeof(int *), typeof(int *), typeof(int *)));
 }
        public static unsafe float MeasureString(FontID inFontID, byte *inChar, int inNumChars)
        {
            IL.DeclareLocals(false);
            Guard.NotNull(MeasureStringPtr);
            float result;

            IL.Push(inFontID);
            IL.Push(inChar);
            IL.Push(inNumChars);
            IL.Push(MeasureStringPtr);
            IL.Emit.Calli(new StandAloneMethodSig(CallingConvention.Cdecl, typeof(float), typeof(FontID), typeof(byte *), typeof(int)));
            IL.Pop(out result);
            return(result);
        }
 public static unsafe float MeasureString(FontID inFontID, in ReadOnlySpan <char> inChar, int inNumChars)
 public static unsafe void DrawNumber(float *inColorRGB, int inXOffset, int inYOffset, double inValue, int inDigits, int inDecimals, int inShowSign, FontID inFontID)
 {
     IL.DeclareLocals(false);
     Guard.NotNull(DrawNumberPtr);
     IL.Push(inColorRGB);
     IL.Push(inXOffset);
     IL.Push(inYOffset);
     IL.Push(inValue);
     IL.Push(inDigits);
     IL.Push(inDecimals);
     IL.Push(inShowSign);
     IL.Push(inFontID);
     IL.Push(DrawNumberPtr);
     IL.Emit.Calli(new StandAloneMethodSig(CallingConvention.Cdecl, typeof(void), typeof(float *), typeof(int), typeof(int), typeof(double), typeof(int), typeof(int), typeof(int), typeof(FontID)));
 }
 public static unsafe void DrawString(float *inColorRGB, int inXOffset, int inYOffset, byte *inChar, int *inWordWrapWidth, FontID inFontID)
 {
     IL.DeclareLocals(false);
     Guard.NotNull(DrawStringPtr);
     IL.Push(inColorRGB);
     IL.Push(inXOffset);
     IL.Push(inYOffset);
     IL.Push(inChar);
     IL.Push(inWordWrapWidth);
     IL.Push(inFontID);
     IL.Push(DrawStringPtr);
     IL.Emit.Calli(new StandAloneMethodSig(CallingConvention.Cdecl, typeof(void), typeof(float *), typeof(int), typeof(int), typeof(byte *), typeof(int *), typeof(FontID)));
 }
Ejemplo n.º 6
0
 public static IUIFont GetFont(FontID fontID)
 {
     return(GetFont((uint)fontID));
 }
Ejemplo n.º 7
0
 public static void DrawString(ReadOnlySpan <float> colorRGB, int xOffset, int yOffset, string charString, int?wordWrapWidth, FontID fontID)
 {