-
Notifications
You must be signed in to change notification settings - Fork 5
/
afterimage.h
34 lines (28 loc) · 994 Bytes
/
afterimage.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
#include <prism/mugenanimationhandler.h>
#include <prism/stlutil.h>
struct DreamPlayer;
struct AfterImageHistoryBufferEntry {
MugenAnimation* mAnimation;
MugenAnimationHandlerElement* mAnimationElement;
int mWasVisible;
};
struct DreamPlayerAfterImage{
int mIsActive;
std::list<AfterImageHistoryBufferEntry> mHistoryBuffer;
int mHistoryBufferLength;
int mNow;
int mDuration;
int mTimeGap;
int mFrameGap;
Vector3D mStartColor;
Vector3D mColorAdd;
Vector3D mColorMultiply;
int mIsColorInverted;
BlendType mBlendType;
};
void initPlayerAfterImage(DreamPlayer* p);
void removePlayerAfterImage(DreamPlayer* p);
void addAfterImage(DreamPlayer* tPlayer, int tHistoryBufferLength, int tDuration, int tTimeGap, int tFrameGap, const Vector3D& tStartColor, const Vector3D& tColorAdd, const Vector3D& tColorMultiply, int tIsColorInverted, BlendType tBlendType);
void setAfterImageDuration(DreamPlayer* tPlayer, int tDuration);
void updateAfterImage(DreamPlayer* tPlayer);