mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-27 01:45:37 -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>
42 lines
810 B
C++
42 lines
810 B
C++
#include "viewroi.h"
|
|
|
|
#include "decomp.h"
|
|
|
|
DECOMP_SIZE_ASSERT(ViewROI, 0xe0)
|
|
|
|
// FUNCTION: LEGO1 0x100a9eb0
|
|
float ViewROI::IntrinsicImportance() const
|
|
{
|
|
return .5;
|
|
} // for now
|
|
|
|
// FUNCTION: LEGO1 0x100a9ec0
|
|
const Tgl::Group* ViewROI::GetGeometry() const
|
|
{
|
|
return geometry;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100a9ed0
|
|
Tgl::Group* ViewROI::GetGeometry()
|
|
{
|
|
return geometry;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100a9ee0
|
|
void ViewROI::UpdateWorldData(const Matrix4Data& parent2world)
|
|
{
|
|
OrientableROI::UpdateWorldData(parent2world);
|
|
if (geometry) {
|
|
Tgl::FloatMatrix4 mat;
|
|
SETMAT4(mat, m_local2world.GetMatrix());
|
|
Tgl::Result result = geometry->SetTransformation(mat);
|
|
// assert(Tgl::Succeeded(result));
|
|
}
|
|
}
|
|
|
|
inline ViewROI::~ViewROI()
|
|
{
|
|
// SetLODList() will decrease refCount of LODList
|
|
SetLODList(0);
|
|
delete geometry;
|
|
}
|