feat(skin manager): add elytra preview

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97
2025-05-08 13:10:37 +03:00
parent 1c20faccf8
commit 64ef14100d
8 changed files with 85 additions and 11 deletions

View File

@ -22,7 +22,7 @@
#include <QOpenGLTexture>
namespace opengl {
class Scene {
class Scene : protected QOpenGLFunctions {
public:
Scene(const QImage& skin, bool slim, const QImage& cape);
virtual ~Scene();
@ -32,15 +32,18 @@ class Scene {
void setCape(const QImage& cape);
void setMode(bool slim);
void setCapeVisible(bool visible);
void setElytraVisible(bool elytraVisible);
private:
QList<BoxGeometry*> m_staticComponents;
QList<BoxGeometry*> m_normalArms;
QList<BoxGeometry*> m_slimArms;
BoxGeometry* m_cape = nullptr;
QList<BoxGeometry*> m_elytra;
QOpenGLTexture* m_skinTexture = nullptr;
QOpenGLTexture* m_capeTexture = nullptr;
bool m_slim = false;
bool m_capeVisible = false;
bool m_elytraVisible = false;
};
} // namespace opengl