MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / char_render

Function char_render

src/SB/Core/x/xFont.cpp:699–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

697namespace
698{
699 void char_render(U8 c, U32 font_index, const basic_rect<F32>& bounds,
700 const basic_rect<F32>& clip, iColor_tag color)
701 {
702 font_data& fd = active_fonts[font_index];
703 U32 char_index = fd.char_index[c];
704
705 if (char_index >= fd.index_max)
706 {
707 return;
708 }
709
710 basic_rect<F32> dst = fd.bounds[char_index];
711 dst.scale(bounds.w, bounds.h);
712 dst.x += bounds.x;
713 dst.y += bounds.y;
714 dst.w *= fd.dstfrac[char_index].x;
715 dst.h *= fd.dstfrac[char_index].y;
716
717 tex_render(fd.tex_bounds[char_index], dst, clip, color);
718 }
719
720 RwRaster* set_tex_raster(RwRaster* raster)
721 {

Callers 1

irenderMethod · 0.85

Calls 1

tex_renderFunction · 0.70

Tested by

no test coverage detected