Logo
Emote.h
1#pragma once
2
3#ifdef USE_EMOTE
4#include "../ext/emote/include/iemote.h"
5#endif
6#include "base/FixedSizeString.h"
7#include "NativeTextureRenderer.h"
8
9namespace SharpKmyGfx {
10
11 ref class SpriteBatch;
12
13#ifdef USE_EMOTE
14 class EmoteData {
15 public:
16 USE_MEMORY_TRACKING;
17 kmyBase::FixedSizePath path = "";
18 IEmotePlayer* m_basePlayer = nullptr;
19 int refnum = 0;
20 };
21#endif
22
23 public ref class EmoteInstance
24 {
25 public:
26 EmoteInstance(System::String^ path);
28 void draw(u32 framebufferWidth, u32 framebufferHeight);
29 void drawToSpriteBatch(SpriteBatch^ sb, int zorder);
30 void progress(int frames);
31
32 void setCoord(float x, float y);//ピクセル値によるオフセット
33 void setColor(u32 rgba);
34 void setScale(float s);
35 void playTimeLine(System::String^ label);
36 array<System::String^>^ getMainTimeLineLabels();
37
38#ifdef USE_EMOTE
39 EmoteData* data;
40 IEmotePlayer* player;
41#endif
42 };
43
44 public ref class EmoteTexture : public RenderTexture::Renderer
45 {
46 public:
47 EmoteTexture(System::String^ path, GameView^ gv, int width, int height);
50
51 EmoteInstance^ emo = nullptr;
52 RenderTexture^ rt = nullptr;
53 };
54
55}
Definition: Emote.h:24
~EmoteInstance()
Definition: Emote.cpp:78
void setScale(float s)
Definition: Emote.cpp:164
void setColor(u32 rgba)
Definition: Emote.cpp:178
void setCoord(float x, float y)
Definition: Emote.cpp:171
void draw(u32 framebufferWidth, u32 framebufferHeight)
Definition: Emote.cpp:96
void drawToSpriteBatch(SpriteBatch^ sb, int zorder)
Definition: Emote.cpp:131
void playTimeLine(System::String^ label)
Definition: Emote.cpp:155
void progress(int frames)
Definition: Emote.cpp:110
EmoteInstance(System::String^ path)
Definition: Emote.cpp:23
array< System::String^> getMainTimeLineLabels()
Definition: Emote.cpp:138
Definition: Emote.h:45
EmoteTexture(System::String^ path, GameView^ gv, int width, int height)
Definition: Emote.cpp:187
InternalCommandList createCommand() override
Definition: Emote.cpp:215
~EmoteTexture()
Definition: Emote.cpp:195
EmoteInstance emo
Definition: Emote.h:51
RenderTexture rt
Definition: Emote.h:52
Definition: GameView.h:48
Definition: InternalCommandBuffer.h:152
Definition: NativeTextureRenderer.h:22
Definition: SpriteBatch.h:9
Definition: Billboard.cpp:4