Add a PositionTranslate func and add Errors for TextureSize mismatch

This commit is contained in:
2026-03-21 16:39:55 +01:00
parent 4dab1987d1
commit d8efcd41b1
9 changed files with 68 additions and 13 deletions
+12
View File
@@ -16,6 +16,18 @@ enum class TextureFormat {
A8,
};
namespace Li {
static int TextureFormat2Bpp(TextureFormat fmt) {
switch (fmt) {
case PD::TextureFormat::A8:
return 1;
case PD::TextureFormat::RGB24:
return 3;
case PD::TextureFormat::RGBA32:
return 4;
default:
return 0;
}
}
class Texture {
public:
using Ptr = Texture*;