mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-23 08:08:03 -05:00
3b155bfe38
* Open discussion * Move annotations of header-implemented functions back to `.h` files * Adjust `README.md` * Relocate annotation * linter * Comment markers in headers only, rename script, update github actions * type hint compat * Rename github action, better argparse for linter * Type hints, working test for byname ignore * Move annotation * CI rename and enable warnfail, enforce mode always on * Two step linting * or one step * continue on error * two jobs instead * Fixes --------- Co-authored-by: disinvite <disinvite@users.noreply.github.com>
30 lines
752 B
C++
30 lines
752 B
C++
#include "impl.h"
|
|
|
|
using namespace TglImpl;
|
|
|
|
DECOMP_SIZE_ASSERT(Camera, 0x4);
|
|
DECOMP_SIZE_ASSERT(CameraImpl, 0x8);
|
|
|
|
// FUNCTION: LEGO1 0x100a36f0
|
|
void* CameraImpl::ImplementationDataPtr()
|
|
{
|
|
return reinterpret_cast<void*>(&m_data);
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100a3700
|
|
Result CameraImpl::SetTransformation(const FloatMatrix4& matrix)
|
|
{
|
|
D3DRMMATRIX4D helper;
|
|
D3DRMMATRIX4D* pTransformation = Translate(matrix, helper);
|
|
|
|
D3DVECTOR position;
|
|
Result result;
|
|
Result result2;
|
|
|
|
result2 = ResultVal(m_data->GetPosition(0, &position));
|
|
result = ResultVal(m_data->AddTransform(D3DRMCOMBINE_REPLACE, *pTransformation));
|
|
// The did this second call just to assert on the return value
|
|
result2 = ResultVal(m_data->GetPosition(0, &position));
|
|
|
|
return result;
|
|
}
|