示例#1
0
        public SDL2_GPU.GPU_Rect drawColumn(SDL2_GPU.GPU_Target_PTR dest, float x, float y, UInt16 width, ref Effect effect, string formatted_text)
        {
            if (formatted_text == null)
            {
                return(SDL2_GPU.GPU_MakeRect(x, y, 0, 0));
            }

            return(SDL_FontCache.FC_DrawColumnEffect(font, dest, x, y, width,
                                                     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()));
        }