MCPcopy Create free account
hub / github.com/doldecomp/mkdd / getCameraData

Method getCameraData

src/Kaneshige/Course/CrsData.cpp:886–892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884}
885
886CrsData::Camera *CrsData::getCameraData(int camIdx) const {
887 Camera *camData = nullptr;
888
889 if (camIdx >= 0 && camIdx < getCameraNumber())
890 camData = reinterpret_cast<Camera *>(reinterpret_cast<u8 *>(mObjectData) + mObjectData->cameraOffset) + camIdx;
891 return camData;
892}
893
894void CrsData::Camera::getFrontDirection(JGeometry::TVec3f *dir) const {
895 dir->set(mDir);

Callers 15

calcMethod · 0.80
checkCrsDemoEventMethod · 0.80
calcMethod · 0.80
ChaseFovyMethod · 0.80
InitFixCamMethod · 0.80
InitFixSearchCamMethod · 0.80
InitFixChaseCamMethod · 0.80
InitChaseCamMethod · 0.80
InitFixPathCamMethod · 0.80
InitChasePathCamMethod · 0.80
InitFixSplCamMethod · 0.80
InitChaseSplCamMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected