MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Game_SetViewDistance

Function Game_SetViewDistance

src/Game.c:169–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167
168
169void Game_SetViewDistance(int distance) {
170 distance = min(distance, Game_MaxViewDistance);
171 if (distance == Game_ViewDistance) return;
172 Game_ViewDistance = distance;
173
174 Event_RaiseVoid(&GfxEvents.ViewDistanceChanged);
175 Camera_UpdateProjection();
176}
177
178void Game_UserSetViewDistance(int distance) {
179 Game_UserViewDistance = distance;

Callers 7

UpdateFogMinimalFunction · 0.85
UpdateFogNormalFunction · 0.85
OnInitFunction · 0.85
Game_ReduceVRAMFunction · 0.85
Game_UserSetViewDistanceFunction · 0.85
CPE_EnvSetMapAppearanceFunction · 0.85
CPE_SetMapEnvPropertyFunction · 0.85

Calls 2

Event_RaiseVoidFunction · 0.85
Camera_UpdateProjectionFunction · 0.85

Tested by

no test coverage detected