mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-06 03:29:55 -06:00
Calculate movie aspect ratio using vertices (#84)
This commit is contained in:
@@ -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