MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / SetModelDistance

Method SetModelDistance

GTE/Graphics/DLODNode.cpp:69–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void DLODNode::SetModelDistance(int32_t i, float minDistance, float maxDistance)
70{
71 LogAssert(
72 0 <= i && i < mNumLevelsOfDetail,
73 "Invalid index in SetModelDistance.");
74
75 LogAssert(
76 minDistance < maxDistance,
77 "Invalid range of distances in SetModelDistance.");
78
79 mModelMinDistance[i] = minDistance;
80 mModelMaxDistance[i] = maxDistance;
81 mWorldMinDistance[i] = minDistance;
82 mWorldMaxDistance[i] = maxDistance;
83}
84
85void DLODNode::SelectLevelOfDetail(std::shared_ptr<Camera> const& camera)
86{

Callers 1

CreateSceneMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected