Luanti 5.19.0-dev
Loading...
Searching...
No Matches
camera.cpp File Reference
#include "camera.h"
#include "client.h"
#include "clientmap.h"
#include "localplayer.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 <ICameraSceneNode.h>
#include <IGUIFont.h>
#include <ISceneNode.h>
#include <IVideoDriver.h>
#include <SViewFrustum.h>
Include dependency graph for camera.cpp:

Macros

#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)

Variables

static constexpr f32 CAMERA_OFFSET_STEP = 200
static const char * setting_names []

Macro Definition Documentation

◆ 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()

v2f dir ( const v2f & pos_dist)
inlinestatic

References WIELDMESH_OFFSET_X, WIELDMESH_OFFSET_Y, x, and y.

Referenced by Camera::addArmInertia().

Here is the caller graph for this function:

◆ my_modf()

f32 my_modf ( f32 x)
inline

References my_modf(), and x.

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

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

Variable Documentation

◆ CAMERA_OFFSET_STEP

f32 CAMERA_OFFSET_STEP = 200
staticconstexpr

Referenced by Camera::updateOffset().

◆ setting_names

const char* setting_names[]
static
Initial value:
= {
"view_bobbing_amount", "fov", "arm_inertia",
"show_nametag_backgrounds",
}

Referenced by Camera::Camera().