1. 完全解耦了Live2D的LApp部分,使其可以接入任何GUI库
2. 初步尝试合并嵌入式Linux平台支持的相关代码,预计在下一次提交完整支持。
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// Created by misaki on 2026/6/23.
|
||||
//
|
||||
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
|
||||
class ISpriteRenderer {
|
||||
public:
|
||||
virtual ~ISpriteRenderer() = default;
|
||||
|
||||
virtual void SetColor(float r, float g, float b, float a) = 0;
|
||||
virtual void SetWindowSize(int w, int h) = 0;
|
||||
virtual void RenderImmidiate(uintptr_t textureId,
|
||||
const float uvVertex[8]) const = 0;
|
||||
virtual bool IsHit(float px, float py) const = 0;
|
||||
virtual void ResetRect(float x, float y, float w, float h) = 0;
|
||||
virtual uintptr_t GetTextureId() const = 0;
|
||||
};
|
||||
Reference in New Issue
Block a user