MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / create

Method create

modules/gui/gui/src/backend/text_server/image_texture.cpp:16–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16Ref<FontAtlasImage> FontAtlasImage::create(Sizei size, int32_t mip_count, Format format, Span<const uint8_t> data)
17{
18 Ref<FontAtlasImage> result;
19
20 result.instantiate();
21 result->set_size(size);
22 result->set_format(format);
23 result->set_mip_count(mip_count);
24 result->set_data(data);
25
26 return result;
27}
28Ref<FontAtlasImage> FontAtlasImage::create(Sizei size, int32_t mip_count, Format format)
29{
30 Ref<FontAtlasImage> result;

Callers

nothing calls this directly

Calls 5

set_formatMethod · 0.80
set_mip_countMethod · 0.80
instantiateMethod · 0.45
set_sizeMethod · 0.45
set_dataMethod · 0.45

Tested by

no test coverage detected