Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
hud.cpp File Reference
#include "client/hud.h"
#include <string>
#include <iostream>
#include <cmath>
#include "settings.h"
#include "util/numeric.h"
#include "log.h"
#include "client.h"
#include "inventory.h"
#include "shader.h"
#include "client/tile.h"
#include "localplayer.h"
#include "camera.h"
#include "porting.h"
#include "fontengine.h"
#include "guiscalingfilter.h"
#include "mesh.h"
#include "wieldmesh.h"
#include "client/renderingengine.h"
#include "client/minimap.h"
#include "client/texturesource.h"
#include "gui/touchcontrols.h"
#include "util/enriched_string.h"
#include "irrlicht_changes/CGUITTFont.h"
+ Include dependency graph for hud.cpp:

Classes

struct  MeshTimeInfo
 

Macros

#define OBJECT_CROSSHAIR_LINE_SIZE   8
 
#define CROSSHAIR_LINE_SIZE   10
 

Functions

static void setting_changed_callback (const std::string &name, void *data)
 
void drawItemStack (video::IVideoDriver *driver, gui::IGUIFont *font, const ItemStack &item, const core::rect< s32 > &rect, const core::rect< s32 > *clip, Client *client, ItemRotationKind rotation_kind, const v3s16 &angle, const v3s16 &rotation_speed)
 
void drawItemStack (video::IVideoDriver *driver, gui::IGUIFont *font, const ItemStack &item, const core::rect< s32 > &rect, const core::rect< s32 > *clip, Client *client, ItemRotationKind rotation_kind)
 

Macro Definition Documentation

◆ CROSSHAIR_LINE_SIZE

#define CROSSHAIR_LINE_SIZE   10

Referenced by Hud::drawCrosshair().

◆ OBJECT_CROSSHAIR_LINE_SIZE

#define OBJECT_CROSSHAIR_LINE_SIZE   8

Referenced by Hud::drawCrosshair().

Function Documentation

◆ drawItemStack() [1/2]

void drawItemStack ( video::IVideoDriver * driver,
gui::IGUIFont * font,
const ItemStack & item,
const core::rect< s32 > & rect,
const core::rect< s32 > * clip,
Client * client,
ItemRotationKind rotation_kind )

References drawItemStack().

Referenced by Hud::drawItem().

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

◆ drawItemStack() [2/2]

void drawItemStack ( video::IVideoDriver * driver,
gui::IGUIFont * font,
const ItemStack & item,
const core::rect< s32 > & rect,
const core::rect< s32 > * clip,
Client * client,
ItemRotationKind rotation_kind,
const v3s16 & angle,
const v3s16 & rotation_speed )

◆ setting_changed_callback()

static void setting_changed_callback ( const std::string & name,
void * data )
static

Referenced by Hud::Hud().

+ Here is the caller graph for this function: