mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-11-16 11:04:10 +01:00
Calculate movie aspect ratio using vertices (#84)
This commit is contained in:
1 parent
4b7f2c0ae7
commit
666f93843d
2 files changed
+23
-4
No files matched your search
@@ -7,8 +7,23 @@ namespace SWA
|
||||
class CMovieDisplayer : public Hedgehog::Universe::CUpdateUnit, public Hedgehog::Mirage::CRenderable
|
||||
{
|
||||
public:
|
||||
struct SVertexData
|
||||
{
|
||||
be<float> X;
|
||||
be<float> Y;
|
||||
be<float> Z;
|
||||
be<float> U;
|
||||
be<float> V;
|
||||
};
|
||||
|
||||
SWA_INSERT_PADDING(0x04);
|
||||
be<uint32_t> m_MovieWidth;
|
||||
be<uint32_t> m_MovieHeight;
|
||||
SWA_INSERT_PADDING(0x74);
|
||||
SVertexData m_TopLeft;
|
||||
SVertexData m_TopRight;
|
||||
SVertexData m_BottomRight;
|
||||
SVertexData m_BottomLeft;
|
||||
SWA_INSERT_PADDING(0xF0);
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user