Luanti 5.10.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 <IAnimatedMeshSceneNode.h>
#include "client/client.h"
#include "client/renderingengine.h"
#include "client/sound.h"
#include "client/texturesource.h"
#include "client/mapblock_mesh.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 dependency graph for content_cao.cpp:

Classes

class  TestCAO
 

Functions

static void setBillboardTextureMatrix (scene::IBillboardSceneNode *bill, float txs, float tys, int col, int row)
 
static void updatePositionRecursive (scene::ISceneNode *node)
 
static bool logOnce (const std::ostringstream &from, std::ostream &log_to)
 
static void setColorParam (scene::ISceneNode *node, video::SColor color)
 
static void setMeshBufferTextureCoords (scene::IMeshBuffer *buf, const v2f *uv, u32 count)
 

Variables

static TestCAO proto_TestCAO (nullptr, nullptr)
 
static GenericCAO proto_GenericCAO (nullptr, nullptr)
 

Function Documentation

◆ 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::updateTexturePos().

+ 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:

◆ setMeshBufferTextureCoords()

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

Referenced by GenericCAO::updateTexturePos().

+ Here is the caller graph for this function:

◆ updatePositionRecursive()

static void updatePositionRecursive ( scene::ISceneNode * node)
static

References updatePositionRecursive().

Referenced by GenericCAO::step(), and updatePositionRecursive().

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

Variable Documentation

◆ proto_GenericCAO

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

◆ proto_TestCAO

TestCAO proto_TestCAO(nullptr, nullptr) ( nullptr ,
nullptr  )
static