|
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
|
Classes | |
| struct | DekiEditor::TextureTargetSettings |
| One target's own values. More... | |
| struct | DekiEditor::TextureSettings |
Namespaces | |
| namespace | DekiEditor |
Functions | |
| TextureSettings | DekiEditor::ReadTextureSettings (const nlohmann::json &tex) |
| Reads settings.texture. Pass the object itself; a missing one gives defaults. | |
| void | DekiEditor::WriteTextureTarget (nlohmann::json &tex, const std::string &platformId, const TextureTargetSettings &t) |
| Writes one target's values into settings.texture, always in the object form. | |
| void | DekiEditor::MaxSizeDims (int srcW, int srcH, int maxSize, int &outW, int &outH) |
| The size an image of srcW x srcH is stored at under maxSize (0 = no limit): unchanged when it fits, else its larger side becomes maxSize and the other keeps the proportion (at least 1). | |
| int | DekiEditor::SourceToStored (int v, int sourceSize, int storedSize) |
| A source-pixel coordinate on one axis (a rect edge, not a size) in stored pixels: round(v * stored / source). | |
Variables | |
| constexpr int | DekiEditor::kTextureMaxSizes [] = { 0, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192 } |
| The Max Size choices, as Unity offers them. 0 means no limit. | |
| constexpr int | DekiEditor::kTextureMaxSizeCount = sizeof(kTextureMaxSizes) / sizeof(kTextureMaxSizes[0]) |