Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
clientmap.cpp File Reference
#include "clientmap.h"
#include "client.h"
#include "client/mesh.h"
#include "mapblock_mesh.h"
#include <IMaterialRenderer.h>
#include <IVideoDriver.h>
#include <matrix4.h>
#include "mapsector.h"
#include "mapblock.h"
#include "nodedef.h"
#include "profiler.h"
#include "settings.h"
#include "camera.h"
#include "util/basic_macros.h"
#include "util/tracy_wrapper.h"
#include "client/renderingengine.h"
#include <queue>
+ Include dependency graph for clientmap.cpp:

Classes

class  MapBlockFlags
 
class  MapBlockFlags::Chunk
 

Functions

static void on_settings_changed (const std::string &name, void *data)
 
static bool getVisibleBrightness (Map *map, const v3f &p0, v3f dir, float step, float step_multiplier, float start_distance, float end_distance, const NodeDefManager *ndef, u32 daylight_factor, float sunlight_min_d, int *result, bool *sunlight_seen)
 

Variables

static const std::string ClientMap_settings []
 

Function Documentation

◆ getVisibleBrightness()

static bool getVisibleBrightness ( Map * map,
const v3f & p0,
v3f dir,
float step,
float step_multiplier,
float start_distance,
float end_distance,
const NodeDefManager * ndef,
u32 daylight_factor,
float sunlight_min_d,
int * result,
bool * sunlight_seen )
static

References BS, CONTENT_IGNORE, dir(), floatToInt(), MapNode::getContent(), MapNode::getLight(), MapNode::getLightBlend(), NodeDefManager::getLightingFlags(), Map::getNode(), ContentLightingFlags::has_light, LIGHT_SUN, LIGHTBANK_DAY, p(), and ContentLightingFlags::sunlight_propagates.

Referenced by ClientMap::getBackgroundBrightness().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ on_settings_changed()

static void on_settings_changed ( const std::string & name,
void * data )
static

Referenced by ClientMap::ClientMap().

+ Here is the caller graph for this function:

Variable Documentation

◆ ClientMap_settings

const std::string ClientMap_settings[]
static
Initial value:
= {
"trilinear_filter",
"bilinear_filter",
"anisotropic_filter",
"transparency_sorting_distance",
"occlusion_culler",
"enable_raytraced_culling",
}

Referenced by ClientMap::ClientMap().