CMoviePlayer progress

This commit is contained in:
2024-10-24 14:58:22 -07:00
parent a425ca9b42
commit 62035f1dba
11 changed files with 396 additions and 19 deletions

View File

@@ -1,20 +1,32 @@
#ifndef _CMOVIEPLAYER
#define _CMOVIEPLAYER
#include "Kyoto/CDvdFile.hpp"
#include "types.h"
class CMoviePlayer {
public:
static void SetSfxVolume(uchar);
static void SetSfxVolume(uchar);
CMoviePlayer(const char*, float, bool, bool);
~CMoviePlayer();
CMoviePlayer(const char*, float, bool, bool);
~CMoviePlayer();
void Update(float);
bool DrawVideo() const;
void Update(float);
bool DrawVideo() const;
private:
char x0_pad[0x100];
private:
CDvdFile x0_movieFile;
uint x84_;
uint x88_;
uint x8c_;
uchar x90_;
uint x94_;
uint x98_;
uint x9c_;
uint xa0_;
uint xa4_;
uint xa8_;
// char x0_pad[0x100];
};
#endif // _CMOVIEPLAYER

View File

@@ -12,6 +12,7 @@ class CNUQuaternion;
class CQuaternion {
public:
CQuaternion(CInputStream& in);
CQuaternion(float w, float x, float y, float z) : w(w), imaginary(x, y, z) {}
CQuaternion(float w, const CVector3f& imaginary) : w(w), imaginary(imaginary) {}

View File

@@ -7,6 +7,7 @@
class CRelAngle {
public:
CRelAngle(float rad) : x0_angle(rad) {}
float AsDegrees() const { return x0_angle * (180.f / M_PIF); }
float AsRadians() const { return x0_angle; }
// ArcCosine__9CRelAngleFf weak
@@ -34,7 +35,6 @@ public:
static CRelAngle FromRadians(float rad) { return CRelAngle(rad); }
private:
CRelAngle(float rad) : x0_angle(rad) {}
float x0_angle;
};

View File

@@ -66,7 +66,7 @@ public:
CModelData();
CModelData(const CAnimRes&);
CModelData(const CStaticRes&);
// CModelData(const CModelData& other);
CModelData(const CModelData& other);
~CModelData();
CAdvancementDeltas AdvanceAnimation(float dt, CStateManager& mgr, TAreaId aid, bool advTree);