MCPcopy Create free account
hub / github.com/XorTroll/uLaunch / ForAssetImage

Method ForAssetImage

projects/uDesigner/source/main.cpp:353–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351 std::string text_text;
352
353 inline static ElementLoadContext ForAssetImage(const std::string &path, const u32 custom_width = 0, const u32 custom_height = 0) {
354 return {
355 .img_path = path,
356 .img_custom_width = custom_width,
357 .img_custom_height = custom_height
358 };
359 }
360
361 inline static ElementLoadContext ForRawImage(void *raw_data, size_t raw_data_size, const u32 custom_width = 0, const u32 custom_height = 0) {
362 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected