Minetest  5.4.0
clouds.cpp File Reference
#include "client/renderingengine.h"
#include "clouds.h"
#include "noise.h"
#include "constants.h"
#include "debug.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

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

Macro Definition Documentation

◆ GETINDEX

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

◆ INAREA

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

Function Documentation

◆ cloud_3d_setting_changed()

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

Referenced by Clouds::Clouds(), and Clouds::~Clouds().

+ Here is the caller graph for this function:

Variable Documentation

◆ cloud_size

constexpr const float cloud_size = BS * 64.0f
staticconstexpr

◆ g_menuclouds

◆ g_menucloudsmgr

irr::scene::ISceneManager* g_menucloudsmgr = NULL