11#include <ICameraSceneNode.h>
12#include <ISceneNode.h>
33 const std::string &
text,
35 const std::optional<video::SColor> &
bgcolor,
49 else if (!use_fallback)
50 return video::SColor(0, 0, 0, 0);
53 return video::SColor(50, 50, 50, 50);
56 return video::SColor(50, 255, 255, 255);
131 ](
v3f position, f32 radius) {
132 v3f pos_camspace = position - camera_offset;
133 for (
auto &plane : planes) {
134 if (plane.getDistanceTo(pos_camspace) > radius)
145 void step(f32 dtime);
188 const std::string &text, video::SColor textcolor,
189 std::optional<video::SColor> bgcolor,
const v3f &pos);
#define MYMAX(a, b)
Definition basic_macros.h:11
CameraMode
Definition camera.h:60
@ CAMERA_MODE_THIRD
Definition camera.h:60
@ CAMERA_MODE_THIRD_FRONT
Definition camera.h:60
@ CAMERA_MODE_FIRST
Definition camera.h:60
v3s16 getOffset() const
Definition camera.h:101
v2f m_wieldmesh_offset
Definition camera.h:235
bool m_show_nametag_backgrounds
Definition camera.h:275
auto getFrustumCuller() const
Definition camera.h:127
scene::ISceneManager * m_wieldmgr
Definition camera.h:207
std::array< core::plane3d< f32 >, 4 > getFrustumCullPlanes() const
Definition camera.cpp:687
s32 m_digging_button
Definition camera.h:262
f32 m_cache_fall_bobbing_amount
Definition camera.h:270
ItemStack m_wield_item_next
Definition camera.h:266
bool m_arm_inertia
Definition camera.h:272
f32 m_view_bobbing_speed
Definition camera.h:253
f32 m_target_fov_degrees
Definition camera.h:229
f32 m_curr_fov_degrees
Definition camera.h:229
MapDrawControl & m_draw_control
Definition camera.h:211
v3s16 m_camera_offset
Definition camera.h:223
v3f m_camera_direction
Definition camera.h:221
v2f m_last_cam_pos
Definition camera.h:239
scene::ISceneNode * m_playernode
Definition camera.h:203
Nametag * addNametag(scene::ISceneNode *parent_node, const std::string &text, video::SColor textcolor, std::optional< video::SColor > bgcolor, const v3f &pos)
Definition camera.cpp:672
f32 getFovX() const
Definition camera.h:107
f32 getFovY() const
Definition camera.h:113
void toggleCameraMode()
Definition camera.h:166
s32 m_view_bobbing_state
Definition camera.h:251
void notifyFovChange()
Definition camera.cpp:80
CameraMode getCameraMode()
Definition camera.h:182
void wield(const ItemStack &item)
Definition camera.cpp:591
CameraMode m_camera_mode
Definition camera.h:268
f32 m_fov_y
Definition camera.h:244
video::SColor m_player_light_color
Definition camera.h:278
void drawWieldedTool(irr::core::matrix4 *translation=NULL)
Definition camera.cpp:603
void step(f32 dtime)
Definition camera.cpp:115
v3f getDirection() const
Definition camera.h:95
f32 getFovMax() const
Definition camera.h:119
v3f getPosition() const
Definition camera.h:82
f32 m_transition_time
Definition camera.h:233
f32 m_view_bobbing_fall
Definition camera.h:255
f32 m_cache_view_bobbing_amount
Definition camera.h:271
f32 m_view_bobbing_anim
Definition camera.h:247
void setDigging(s32 button)
Definition camera.cpp:585
bool m_stepheight_smooth_active
Definition camera.h:225
f32 m_digging_anim
Definition camera.h:258
void addArmInertia(f32 player_yaw)
Definition camera.cpp:212
f32 m_fov_x
Definition camera.h:243
v2f m_arm_dir
Definition camera.h:236
bool m_fov_transition_active
Definition camera.h:232
scene::ICameraSceneNode * m_cameranode
Definition camera.h:205
Client * m_client
Definition camera.h:213
v2f m_cam_vel_old
Definition camera.h:238
v3f getHeadPosition() const
Definition camera.h:88
Camera(MapDrawControl &draw_control, Client *client, RenderingEngine *rendering_engine)
Definition camera.cpp:35
void drawNametags()
Definition camera.cpp:630
f32 m_wield_change_timer
Definition camera.h:265
void removeNametag(Nametag *nametag)
Definition camera.cpp:681
f32 m_cache_fov
Definition camera.h:216
void update(LocalPlayer *player, f32 frametime, f32 tool_reload_ratio)
Definition camera.cpp:284
void updateViewingRange()
Definition camera.cpp:571
~Camera()
Definition camera.cpp:75
scene::ICameraSceneNode * getCameraNode() const
Definition camera.h:75
WieldMeshSceneNode * m_wieldnode
Definition camera.h:208
f32 m_aspect
Definition camera.h:242
f32 m_fov_diff
Definition camera.h:233
v3f m_camera_position
Definition camera.h:219
v2f m_cam_vel
Definition camera.h:237
void setCameraMode(CameraMode mode)
Definition camera.h:176
bool m_server_sent_fov
Definition camera.h:228
scene::ISceneNode * m_headnode
Definition camera.h:204
std::list< Nametag * > m_nametags
Definition camera.h:274
Definition localplayer.h:50
Definition renderingengine.h:68
Definition wieldmesh.h:90
#define BS
Definition constants.h:61
core::vector2d< f32 > v2f
Definition irr_v2d.h:11
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
core::vector3df v3f
Definition irr_v3d.h:11
Definition activeobjectmgr.cpp:11
v3f intToFloat(v3s16 p, f32 d)
Definition numeric.h:323
Definition inventory.h:19
Definition clientmap.h:14