MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetPolymodelPointer

Function GetPolymodelPointer

model/polymodel.cpp:2212–2217  ·  view source on GitHub ↗

Gets a pointer to a polymodel. Pages it in if neccessary

Source from the content-addressed store, hash-verified

2210
2211// Gets a pointer to a polymodel. Pages it in if neccessary
2212poly_model *GetPolymodelPointer(int polynum) {
2213 if (Poly_models[polynum].flags & PMF_NOT_RESIDENT)
2214 PageInPolymodel(polynum);
2215
2216 return (&Poly_models[polynum]);
2217}
2218
2219// gets the filename from a path
2220std::filesystem::path ChangePolyModelName(const std::filesystem::path &src) {

Callers 15

mng_LoadLocalShipPageFunction · 0.85
DrawPolygonModelFunction · 0.85
ComputeDefaultSizeFuncFunction · 0.85
HObjectPlaceFunction · 0.85
ResetGroundObjectFunction · 0.85
ShowLevelStatsFunction · 0.85
DrawDoorwayDoorPicMethod · 0.85
OnDefaultSizeMethod · 0.85
VerifyDoorModelFunction · 0.85
UpdateDoorViewMethod · 0.85

Calls 1

PageInPolymodelFunction · 0.85

Tested by

no test coverage detected