MCPcopy Create free account
hub / github.com/KorokEngine/Korok / LoadBitmap

Function LoadBitmap

gfx/font/bitmap.go:21–66  ·  view source on GitHub ↗

LoadBitmap loads a bitmap (raster) fontAtlas from the given sprite sheet and config files. It is optionally scaled by the given scale factor. A scale factor of 1 retains the original size. A factor of 2 doubles the fontAtlas size, etc. A scale factor of 0 is not valid and will default to 1. Suppor

(img, config io.Reader, scale int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

loadTexMethod · 0.95
addGlyphsMethod · 0.95
toRGBAFunction · 0.85
DecodeMethod · 0.65

Tested by

no test coverage detected