mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 23:48:12 -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>
54 lines
1.1 KiB
C++
54 lines
1.1 KiB
C++
#include "impl.h"
|
|
|
|
using namespace TglImpl;
|
|
|
|
DECOMP_SIZE_ASSERT(Unk, 0x4);
|
|
DECOMP_SIZE_ASSERT(UnkImpl, 0x8);
|
|
|
|
// FUNCTION: LEGO1 0x100a3830
|
|
void* UnkImpl::ImplementationDataPtr()
|
|
{
|
|
return reinterpret_cast<void*>(&m_data);
|
|
}
|
|
|
|
// STUB: LEGO1 0x100a3840
|
|
Result UnkImpl::SetMeshData(
|
|
unsigned long faceCount,
|
|
unsigned long vertexCount,
|
|
const float (*pPositions)[3],
|
|
const float (*pNormals)[3],
|
|
const float (*pTextureCoordinates)[2],
|
|
unsigned long vertexPerFaceCount,
|
|
unsigned long* pFaceData
|
|
)
|
|
{
|
|
return Error;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100a3ae0
|
|
Result UnkImpl::GetBoundingBox(float min[3], float max[3])
|
|
{
|
|
D3DRMBOX box;
|
|
Result result = ResultVal(m_data->GetBox(&box));
|
|
if (result == Success) {
|
|
min[0] = box.min.x;
|
|
min[1] = box.min.y;
|
|
min[2] = box.min.z;
|
|
max[0] = box.max.x;
|
|
max[1] = box.max.y;
|
|
max[2] = box.max.z;
|
|
}
|
|
return result;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100a3b40
|
|
Unk* UnkImpl::Clone()
|
|
{
|
|
UnkImpl* mesh = new UnkImpl();
|
|
int ret = m_data->Clone(0, IID_IDirect3DRMMeshBuilder, (void**) &mesh->m_data);
|
|
if (ret < 0) {
|
|
delete mesh;
|
|
mesh = NULL;
|
|
}
|
|
return mesh;
|
|
}
|