Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
clouds.cpp File Reference
#include "client/renderingengine.h"
#include "client/shader.h"
#include "clouds.h"
#include "constants.h"
#include "debug.h"
#include "irrlicht_changes/printing.h"
#include "noise.h"
#include "profiler.h"
#include "settings.h"
#include <cmath>
+ Include dependency graph for clouds.cpp:

Macros

#define GETINDEX(x, z, radius)   (((z)+(radius))*(radius)*2 + (x)+(radius))
 
#define INAREA(x, z, radius)    ((x) >= -(radius) && (x) < (radius) && (z) >= -(radius) && (z) < (radius))
 

Functions

static void cloud_3d_setting_changed (const std::string &settingname, void *data)
 

Variables

scene::ISceneManager * g_menucloudsmgr = nullptr
 
Cloudsg_menuclouds = nullptr
 
static constexpr const float cloud_size = BS * 64.0f
 

Macro Definition Documentation

◆ GETINDEX

#define GETINDEX ( x,
z,
radius )   (((z)+(radius))*(radius)*2 + (x)+(radius))

Referenced by Clouds::updateMesh().

◆ INAREA

#define INAREA ( x,
z,
radius )    ((x) >= -(radius) && (x) < (radius) && (z) >= -(radius) && (z) < (radius))

Referenced by Clouds::updateMesh().

Function Documentation

◆ cloud_3d_setting_changed()

static void cloud_3d_setting_changed ( const std::string & settingname,
void * data )
static

References Clouds::readSettings().

Referenced by Clouds::Clouds().

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

Variable Documentation

◆ cloud_size

const float cloud_size = BS * 64.0f
staticconstexpr

◆ g_menuclouds

◆ g_menucloudsmgr

scene::ISceneManager* g_menucloudsmgr = nullptr