Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
content_cao.cpp File Reference
#include "content_cao.h"
#include <IBillboardSceneNode.h>
#include <ICameraSceneNode.h>
#include <IMeshManipulator.h>
#include <AnimatedMeshSceneNode.h>
#include <ISceneNode.h>
#include "client/client.h"
#include "client/renderingengine.h"
#include "client/sound.h"
#include "client/texturesource.h"
#include "client/mapblock_mesh.h"
#include "client/content_mapblock.h"
#include "client/meshgen/collector.h"
#include "util/basic_macros.h"
#include "util/numeric.h"
#include "util/serialize.h"
#include "camera.h"
#include "collision.h"
#include "content_cso.h"
#include "clientobject.h"
#include "environment.h"
#include "itemdef.h"
#include "localplayer.h"
#include "map.h"
#include "mesh.h"
#include "nodedef.h"
#include "settings.h"
#include "tool.h"
#include "wieldmesh.h"
#include <algorithm>
#include <cmath>
#include "client/shader.h"
#include "client/minimap.h"
#include <quaternion.h>
#include <SMesh.h>
#include <IMeshBuffer.h>
#include <CMeshBuffer.h>
+ Include dependency graph for content_cao.cpp:

Functions

static bool setMaterialTextureAndFilters (video::SMaterial &material, const std::string &texturestring, ITextureSource *tsrc)
 
static void setBillboardTextureMatrix (scene::IBillboardSceneNode *bill, float txs, float tys, int col, int row)
 
static bool logOnce (const std::ostringstream &from, std::ostream &log_to)
 
static void setColorParam (scene::ISceneNode *node, video::SColor color)
 
static scene::SMesh * generateNodeMesh (Client *client, MapNode n, std::vector< MeshAnimationInfo > &animation)
 
static void setMeshBufferTextureCoords (scene::IMeshBuffer *buf, const v2f *uv, u32 count)
 

Variables

static GenericCAO proto_GenericCAO (nullptr, nullptr)
 

Function Documentation

◆ generateNodeMesh()

static scene::SMesh * generateNodeMesh ( Client * client,
MapNode n,
std::vector< MeshAnimationInfo > & animation )
static

References MapblockMeshGenerator::generate(), getAdHocNodeShader(), MATERIAL_FLAG_ANIMATION, MAX_TILE_LAYERS, p(), MeshCollector::prebuffers, and MapNode::setParam1().

Referenced by GenericCAO::addToScene().

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

◆ logOnce()

static bool logOnce ( const std::ostringstream & from,
std::ostream & log_to )
static

References hash(), and murmur_hash_64_ua().

Referenced by GenericCAO::addToScene().

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

◆ setBillboardTextureMatrix()

static void setBillboardTextureMatrix ( scene::IBillboardSceneNode * bill,
float txs,
float tys,
int col,
int row )
static

Referenced by GenericCAO::addToScene(), and GenericCAO::updateTextureAnim().

+ Here is the caller graph for this function:

◆ setColorParam()

static void setColorParam ( scene::ISceneNode * node,
video::SColor color )
static

Referenced by GenericCAO::setNodeLight().

+ Here is the caller graph for this function:

◆ setMaterialTextureAndFilters()

static bool setMaterialTextureAndFilters ( video::SMaterial & material,
const std::string & texturestring,
ITextureSource * tsrc )
static

References g_settings, Settings::getBool(), ITextureSource::getTextureForMesh(), setMaterialFilters(), and TEXTURE_FILTER_MIN_SIZE.

Referenced by GenericCAO::updateTextures().

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

◆ setMeshBufferTextureCoords()

static void setMeshBufferTextureCoords ( scene::IMeshBuffer * buf,
const v2f * uv,
u32 count )
static

Referenced by GenericCAO::updateTextureAnim().

+ Here is the caller graph for this function:

Variable Documentation

◆ proto_GenericCAO

GenericCAO proto_GenericCAO(nullptr, nullptr) ( nullptr ,
nullptr  )
static