re3-wiiu/src/render/SpecialFX.h

248 lines
5.4 KiB
C
Raw Normal View History

#pragma once
2020-10-11 20:40:11 +02:00
//done
class CSpecialFX
{
public:
2020-10-09 19:29:38 +02:00
static bool bVideoCam;
static bool bLiftCam;
2020-05-24 15:14:27 +02:00
static bool bSnapShotActive;
2020-08-27 18:52:43 +02:00
static int32 SnapShotFrames;
2020-05-24 15:14:27 +02:00
2020-10-09 19:29:38 +02:00
static void Render(void); //done
static void Update(void); //done
static void Init(void); //done
static void Shutdown(void); //done
2020-10-11 20:40:11 +02:00
static void AddWeaponStreak(int type); //done
2020-10-09 19:29:38 +02:00
static void Render2DFXs(); //done
};
2019-06-30 21:06:55 +02:00
2020-10-11 20:40:11 +02:00
//done
class CRegisteredMotionBlurStreak
{
public:
2020-04-09 20:50:24 +02:00
uintptr m_id;
uint8 m_red;
uint8 m_green;
uint8 m_blue;
CVector m_pos1[3];
CVector m_pos2[3];
bool m_isValid[3];
2020-10-09 19:29:38 +02:00
void Update(void); //done
2020-10-11 20:40:11 +02:00
void Render(void); //done
};
2020-10-11 20:40:11 +02:00
//done
2019-06-30 21:06:55 +02:00
class CMotionBlurStreaks
{
static CRegisteredMotionBlurStreak aStreaks[NUMMBLURSTREAKS];
2019-06-30 21:06:55 +02:00
public:
2020-10-11 20:40:11 +02:00
static void Init(void); //done
2020-10-09 19:29:38 +02:00
static void Update(void); //done
2020-10-11 20:40:11 +02:00
static void RegisterStreak(uintptr id, uint8 r, uint8 g, uint8 b, CVector p1, CVector p2); //done
static void Render(void); //done
2019-06-30 21:06:55 +02:00
};
2019-06-30 22:55:48 +02:00
2020-10-11 20:40:11 +02:00
//done
2019-06-30 22:55:48 +02:00
struct CBulletTrace
{
2020-03-21 18:14:29 +01:00
CVector m_vecCurrentPos;
CVector m_vecTargetPos;
2019-06-30 22:55:48 +02:00
bool m_bInUse;
2020-10-09 19:29:38 +02:00
uint32 m_nCreationTime;
uint32 m_nLifeTime;
2020-10-11 20:40:11 +02:00
float m_fThicknes;
uint8 m_fVisibility;
2020-03-21 18:14:29 +01:00
2020-10-09 19:29:38 +02:00
void Update(void); //done
2019-06-30 22:55:48 +02:00
};
2020-10-11 20:40:11 +02:00
//done
2019-06-30 22:55:48 +02:00
class CBulletTraces
{
public:
static CBulletTrace aTraces[NUMBULLETTRACES];
2019-06-30 22:55:48 +02:00
2020-10-11 20:40:11 +02:00
static void Init(void); //done
static void Render(void); //done
2020-10-09 19:29:38 +02:00
static void Update(void); //done
2020-10-11 20:40:11 +02:00
static void AddTrace(CVector* start, CVector* end, float thickness, uint32 lifeTime, uint8 visibility); //done
static void AddTrace(CVector* start, CVector* end, int32 weaponType, class CEntity* shooter); //done
2019-06-30 22:55:48 +02:00
};
2019-07-24 18:55:43 +02:00
2019-10-17 01:22:39 +02:00
enum
{
MARKERTYPE_0 = 0,
MARKERTYPE_ARROW,
MARKERTYPE_2,
MARKERTYPE_3,
MARKERTYPE_CYLINDER,
NUMMARKERTYPES,
MARKERTYPE_INVALID = 0x101
};
2020-10-11 20:40:11 +02:00
//done
2019-10-17 01:22:39 +02:00
class C3dMarker
2020-04-07 12:33:14 +02:00
{
public:
CMatrix m_Matrix;
RpAtomic *m_pAtomic;
RpMaterial *m_pMaterial;
uint16 m_nType;
bool m_bIsUsed;
bool m_bFindZOnNextPlacement;
2020-04-07 12:33:14 +02:00
uint32 m_nIdentifier;
RwRGBA m_Color;
uint16 m_nPulsePeriod;
int16 m_nRotateRate;
uint32 m_nStartTime;
float m_fPulseFraction;
float m_fStdSize;
float m_fSize;
float m_fBrightness;
float m_fCameraRange;
2020-10-11 20:40:11 +02:00
bool AddMarker(uint32 identifier, uint16 type, float fSize, uint8 r, uint8 g, uint8 b, uint8 a, uint16 pulsePeriod, float pulseFraction, int16 rotateRate); //done
void DeleteMarkerObject(); //done
void Render(); //done
2019-10-17 01:22:39 +02:00
};
2020-10-11 21:29:49 +02:00
//done
2019-07-24 18:55:43 +02:00
class C3dMarkers
{
public:
2020-10-11 20:40:11 +02:00
static void Init(); //done
static void Shutdown(); //done
2020-10-11 21:29:49 +02:00
static C3dMarker *PlaceMarker(uint32 id, uint16 type, CVector &pos, float size, uint8 r, uint8 g, uint8 b, uint8 a, uint16 pulsePeriod, float pulseFraction, int16 rotateRate); //done
2020-10-11 20:40:11 +02:00
static void PlaceMarkerSet(uint32 id, uint16 type, CVector &pos, float size, uint8 r, uint8 g, uint8 b, uint8 a, uint16 pulsePeriod, float pulseFraction, int16 rotateRate); //done
static void Render(); //done
static void Update(); //done
2019-10-17 01:22:39 +02:00
static C3dMarker m_aMarkerArray[NUM3DMARKERS];
static int32 NumActiveMarkers;
static RpClump* m_pRpClumpArray[NUMMARKERTYPES];
2020-04-07 12:33:14 +02:00
};
2020-04-07 16:48:49 +02:00
enum
{
BRIGHTLIGHT_INVALID,
BRIGHTLIGHT_TRAFFIC_GREEN,
BRIGHTLIGHT_TRAFFIC_YELLOW,
BRIGHTLIGHT_TRAFFIC_RED,
// white
BRIGHTLIGHT_FRONT_LONG,
BRIGHTLIGHT_FRONT_SMALL,
BRIGHTLIGHT_FRONT_BIG,
BRIGHTLIGHT_FRONT_TALL,
// red
BRIGHTLIGHT_REAR_LONG,
BRIGHTLIGHT_REAR_SMALL,
BRIGHTLIGHT_REAR_BIG,
BRIGHTLIGHT_REAR_TALL,
BRIGHTLIGHT_SIREN, // unused
BRIGHTLIGHT_FRONT = BRIGHTLIGHT_FRONT_LONG,
BRIGHTLIGHT_REAR = BRIGHTLIGHT_REAR_LONG,
};
2020-10-11 20:40:11 +02:00
//done
2020-04-09 20:50:24 +02:00
class CBrightLight
{
public:
CVector m_pos;
CVector m_up;
CVector m_side;
CVector m_front;
float m_camDist;
uint8 m_type;
uint8 m_red;
uint8 m_green;
uint8 m_blue;
2020-04-07 16:48:49 +02:00
};
class CBrightLights
{
static int NumBrightLights;
static CBrightLight aBrightLights[NUMBRIGHTLIGHTS];
public:
2020-10-11 20:40:11 +02:00
static void Init(void); //done
2020-04-07 16:48:49 +02:00
static void RegisterOne(CVector pos, CVector up, CVector side, CVector front,
2020-10-11 20:40:11 +02:00
uint8 type, uint8 red = 0, uint8 green = 0, uint8 blue = 0); //done
2020-10-11 21:29:49 +02:00
static void Render(void); //looks similad but needs recheck !!!!!!!!!!!!!!!!!
2020-10-11 20:40:11 +02:00
static void RenderOutGeometryBuffer(void); //done
2020-04-07 16:48:49 +02:00
};
2020-04-07 12:33:14 +02:00
enum
{
SHINYTEXT_WALK = 1,
SHINYTEXT_FLAT
};
2020-10-11 20:40:11 +02:00
//done
2020-04-07 12:33:14 +02:00
class CShinyText
{
public:
2020-04-09 20:50:24 +02:00
CVector m_verts[4];
CVector2D m_texCoords[4];
float m_camDist;
uint8 m_type;
uint8 m_red;
uint8 m_green;
2020-04-07 12:33:14 +02:00
uint8 m_blue;
};
2020-10-11 20:40:11 +02:00
//done
class CShinyTexts
2020-04-07 12:33:14 +02:00
{
static int NumShinyTexts;
static CShinyText aShinyTexts[NUMSHINYTEXTS];
public:
2020-10-11 20:40:11 +02:00
static void Init(void); //done
2020-04-07 12:33:14 +02:00
static void RegisterOne(CVector p0, CVector p1, CVector p2, CVector p3,
float u0, float v0, float u1, float v1, float u2, float v2, float u3, float v3,
2020-10-11 20:40:11 +02:00
uint8 type, uint8 red, uint8 green, uint8 blue, float maxDist); //done, not used
static void Render(void); //done
static void RenderOutGeometryBuffer(void); //done
2020-04-07 12:33:14 +02:00
};
2020-10-11 20:40:11 +02:00
//done
2020-04-07 12:33:14 +02:00
class CMoneyMessage
{
friend class CMoneyMessages;
uint32 m_nTimeRegistered;
CVector m_vecPosition;
wchar m_aText[16];
CRGBA m_Colour;
float m_fSize;
float m_fOpacity;
public:
2020-10-09 19:29:38 +02:00
void Render(); //done
2020-04-07 12:33:14 +02:00
};
2020-10-11 20:40:11 +02:00
//done
2020-04-07 12:33:14 +02:00
class CMoneyMessages
{
static CMoneyMessage aMoneyMessages[NUMMONEYMESSAGES];
public:
2020-10-11 20:40:11 +02:00
static void Init(); //done
2020-10-09 19:29:38 +02:00
static void Render(); //done
2020-10-11 20:40:11 +02:00
static void RegisterOne(CVector vecPos, const char *pText, uint8 bRed, uint8 bGreen, uint8 bBlue, float fSize, float fOpacity); //done
2020-04-07 12:33:14 +02:00
};
2020-10-11 21:29:49 +02:00
//done
2020-04-07 12:33:14 +02:00
class CSpecialParticleStuff
{
static uint32 BoatFromStart;
public:
2020-10-11 21:29:49 +02:00
static void CreateFoamAroundObject(CMatrix*, float, float, float, int32); //done, not used
static void StartBoatFoamAnimation(); //done, not used
static void UpdateBoatFoamAnimation(CMatrix*); //done, not used
2020-04-07 12:33:14 +02:00
};