mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 23:47:43 +00:00
CIntElement: Add class to handle RTOI int elements
Within the int element handling code, there seems to be a missing implementation (with the FourCC 'RTOI'), which seems to take two 32-bit floating point values, multiplies them, then converts the result to a 32-bit integer.
This commit is contained in:
@@ -206,4 +206,16 @@ public:
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
class CIERealToInt final : public CIntElement {
|
||||
std::unique_ptr<CRealElement> x4_a;
|
||||
std::unique_ptr<CRealElement> x8_b;
|
||||
|
||||
public:
|
||||
explicit CIERealToInt(std::unique_ptr<CRealElement>&& a, std::unique_ptr<CRealElement>&& b)
|
||||
: x4_a{std::move(a)}, x8_b{std::move(b)} {}
|
||||
|
||||
bool GetValue(int frame, int& valOut) const override;
|
||||
int GetMaxValue() const override;
|
||||
};
|
||||
|
||||
} // namespace urde
|
||||
|
||||
Reference in New Issue
Block a user