MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / buildIconTexture

Method buildIconTexture

source/ui/data/appFile.cpp:46–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void AppFile::buildIconTexture() {
47 if (Fs::doesNativePathExist(localIconPath)) {
48 int w = 0, h = 0;
49 unsigned char* data = LoadImageFromFile(localIconPath.c_str(), &w, &h);
50 if (data) {
51 this->iconTexture = std::make_shared<BoxedTexture>([data, w, h]() {
52 return MakeRGBATexture(data, w, h);
53 });
54 }
55
56 }
57}
58
59void AppFile::runOptions(BoxedContainer* container, BoxedApp* app, const std::vector<BString>& options, std::list< std::function<bool() > >& runner, std::list<AppDownloadTask>& downloads) {
60 // :TODO: find dependencies, if there are some then delay the other changes

Callers 2

loadFileListsMethod · 0.80
updateFileListMethod · 0.80

Calls 3

LoadImageFromFileFunction · 0.85
MakeRGBATextureFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected