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

Function IsNonRenderableSubmodel

model/polymodel.cpp:3223–3234  ·  view source on GitHub ↗

Returns 1 if this submodel shouldn't be rendered

Source from the content-addressed store, hash-verified

3221
3222// Returns 1 if this submodel shouldn't be rendered
3223int IsNonRenderableSubmodel(poly_model *pm, int submodelnum) {
3224 ASSERT(pm->used);
3225 ASSERT(!(pm->flags & PMF_NOT_RESIDENT));
3226
3227 if ((pm->submodel[submodelnum].flags & SOF_FRONTFACE) || (pm->submodel[submodelnum].flags & SOF_SHELL))
3228 return 1;
3229
3230 if (pm->submodel[submodelnum].num_faces == 0)
3231 return 1;
3232
3233 return 0;
3234}

Calls

no outgoing calls

Tested by 1

TestObjectLightAdjacencyFunction · 0.68