Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
particles.cpp File Reference
#include "particles.h"
#include <cmath>
#include <array>
#include "client.h"
#include "collision.h"
#include "client/content_cao.h"
#include "client/clientevent.h"
#include "client/renderingengine.h"
#include "client/texturesource.h"
#include "util/numeric.h"
#include "light.h"
#include "localplayer.h"
#include "clientmap.h"
#include "mapnode.h"
#include "node_visuals.h"
#include "nodedef.h"
#include "settings.h"
#include "profiler.h"
#include "CMeshBuffer.h"
+ Include dependency graph for particles.cpp:

Typedefs

using BlendMode = ParticleParamTypes::BlendMode
 

Functions

static video::ITexture * extractTexture (const TileDef &def, const TileLayer &layer, ITextureSource *tsrc)
 
static void setBlendMode (video::SMaterial &material, BlendMode blendmode)
 

Variables

static constexpr u16 quad_indices [] = { 0, 1, 2, 2, 3, 0 }
 

Typedef Documentation

◆ BlendMode

Function Documentation

◆ extractTexture()

static video::ITexture * extractTexture ( const TileDef & def,
const TileLayer & layer,
ITextureSource * tsrc )
static

References TileLayer::empty(), TileLayer::frames, ITextureSource::getTexture(), MATERIAL_FLAG_ANIMATION, TileLayer::material_flags, and TileDef::name.

Referenced by ParticleManager::getNodeParticleParams(), and WieldMeshSceneNode::setExtruded().

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

◆ setBlendMode()

static void setBlendMode ( video::SMaterial & material,
BlendMode blendmode )
static

Referenced by ParticleManager::getMaterialForParticle().

+ Here is the caller graph for this function:

Variable Documentation

◆ quad_indices

u16 quad_indices[] = { 0, 1, 2, 2, 3, 0 }
staticconstexpr