Exemplo n.º 1
0
        public SDL2_GPU.GPU_Rect drawBox(SDL2_GPU.GPU_Target_PTR dest, ref SDL2_GPU.GPU_Rect box, AlignEnum align, string formatted_text)
        {
            if (formatted_text == null)
            {
                return(SDL2_GPU.GPU_MakeRect(box.x, box.y, 0, 0));
            }

            return(SDL_FontCache.FC_DrawBoxAlign(font, dest, box, translate_enum_NFont_to_FC(align), formatted_text, __arglist()));
        }
Exemplo n.º 2
0
        public SDL2_GPU.GPU_Rect drawBox(SDL2_GPU.GPU_Target_PTR dest, ref SDL2_GPU.GPU_Rect box, string formatted_text)
        {
            if (formatted_text == null)
            {
                return(SDL2_GPU.GPU_MakeRect(box.x, box.y, 0, 0));
            }

            return(SDL_FontCache.FC_DrawBox(font, dest, box, formatted_text, __arglist()));
        }
Exemplo n.º 3
0
        public SDL2_GPU.GPU_Rect drawBox(SDL2_GPU.GPU_Target_PTR dest, ref SDL2_GPU.GPU_Rect box, ref Effect effect, string formatted_text)
        {
            if (formatted_text == null)
            {
                return(SDL2_GPU.GPU_MakeRect(box.x, box.y, 0, 0));
            }

            return(SDL_FontCache.FC_DrawBoxEffect(font, dest, box,
                                                  SDL_FontCache.FC_MakeEffect(
                                                      translate_enum_NFont_to_FC(effect.alignment),
                                                      SDL_FontCache.FC_MakeScale(effect.scale.x, effect.scale.y),
                                                      effect.color),
                                                  formatted_text, __arglist()));
        }
Exemplo n.º 4
0
 public static extern byte  FC_InRect(float x, float y, SDL2_GPU.GPU_Rect input_rect);
Exemplo n.º 5
0
 public static extern SDL2_GPU.GPU_Rect  FC_DrawBoxEffect(
     FC_Font_PTR font, SDL2_GPU.GPU_Target_PTR dest,
     SDL2_GPU.GPU_Rect box, FC_Effect effect,
     [In()][MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(LPUtf8StrMarshaler))]
     string formatted_text, __arglist);