Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
camera.cpp File Reference
#include "camera.h"
#include "debug.h"
#include "client.h"
#include "config.h"
#include "map.h"
#include "clientmap.h"
#include "player.h"
#include <cmath>
#include "client/renderingengine.h"
#include "client/content_cao.h"
#include "settings.h"
#include "wieldmesh.h"
#include "noise.h"
#include "mtevent.h"
#include "nodedef.h"
#include "util/numeric.h"
#include "constants.h"
#include "fontengine.h"
#include "script/scripting_client.h"
#include "gettext.h"
#include <SViewFrustum.h>
#include <IGUIFont.h>
#include <IVideoDriver.h>
+ Include dependency graph for camera.cpp:

Macros

#define CAMERA_OFFSET_STEP   200
 
#define WIELDMESH_OFFSET_X   55.0f
 
#define WIELDMESH_OFFSET_Y   -35.0f
 
#define WIELDMESH_AMPLITUDE_X   7.0f
 
#define WIELDMESH_AMPLITUDE_Y   10.0f
 

Functions

f32 my_modf (f32 x)
 
static v2f dir (const v2f &pos_dist)
 

Macro Definition Documentation

◆ CAMERA_OFFSET_STEP

#define CAMERA_OFFSET_STEP   200

Referenced by Camera::update().

◆ WIELDMESH_AMPLITUDE_X

#define WIELDMESH_AMPLITUDE_X   7.0f

Referenced by Camera::addArmInertia().

◆ WIELDMESH_AMPLITUDE_Y

#define WIELDMESH_AMPLITUDE_Y   10.0f

Referenced by Camera::addArmInertia().

◆ WIELDMESH_OFFSET_X

#define WIELDMESH_OFFSET_X   55.0f

Referenced by Camera::addArmInertia(), and dir().

◆ WIELDMESH_OFFSET_Y

#define WIELDMESH_OFFSET_Y   -35.0f

Referenced by Camera::addArmInertia(), and dir().

Function Documentation

◆ dir()

static v2f dir ( const v2f & pos_dist)
inlinestatic

References WIELDMESH_OFFSET_X, and WIELDMESH_OFFSET_Y.

Referenced by Camera::addArmInertia(), ServerMap::addNodeAndUpdate(), boxLineCollision(), boxLineCollision(), Pathfinder::calcCost(), ChatPrompt::cursorOperation(), MapblockMeshGenerator::drawGlasslikeFramedNode(), MapblockMeshGenerator::drawGlasslikeNode(), Hud::drawHotbar(), MapblockMeshGenerator::drawLiquidTop(), MapblockMeshGenerator::drawNodeboxNode(), MapblockMeshGenerator::drawRaillikeNode(), client::ActiveObjectMgr::getActiveSelectableObjects(), ClientMap::getBackgroundBrightness(), PathGridnode::getCost(), getNodeTile(), fs::GetRecursiveDirs(), fs::GetRecursiveDirs(), getVisibleBrightness(), Game::handleClientEvent_HudChange(), Client::handleCommand_HudAdd(), Server::handleCommand_Interact(), Game::handlePointingAtObject(), Map::isBlockOccluded(), MapblockMeshGenerator::isSameRail(), ObjectRef::l_punch(), ScriptApiEntity::luaentity_Punch(), treegen::make_ltree(), DungeonGen::makeCorridor(), Game::nodePlacement(), ScriptApiPlayer::on_punchplayer(), GUIChatConsole::OnEvent(), GUITable::OnEvent(), Game::processItemSelection(), LuaEntitySAO::punch(), PlayerSAO::punch(), rand_ortho_dir(), random_turn(), PathGridnode::setCost(), DirectionalLight::setDirection(), ParticleSpawner::spawnParticle(), Mapgen::spreadLight(), voxalgo::step_rel_block_pos(), GUITable::toggleVisibleTree(), transformNodeBox(), TouchControls::translateEvent(), turn_xz(), ClientMap::updateCamera(), Game::updatePointedThing(), and GenericCAO::updateTexturePos().

◆ my_modf()

f32 my_modf ( f32 x)
inline

Referenced by Camera::step(), and Camera::update().

+ Here is the caller graph for this function: