#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 "gui/touchcontrols.h"
#include "util/enriched_string.h"
#include "irrlicht_changes/CGUITTFont.h"
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) |
#define CROSSHAIR_LINE_SIZE 10 |
Referenced by Hud::drawCrosshair().
#define OBJECT_CROSSHAIR_LINE_SIZE 8 |
Referenced by Hud::drawCrosshair().
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().
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 ) |
References ItemMesh::buffer_colors, colorizeMeshBuffer(), ItemStack::count, draw2DImageFilterScaled(), ItemStack::empty(), g_settings, Settings::getBool(), ItemStack::getDefinition(), porting::getDeltaMs(), ItemStack::getInventoryImage(), ItemStack::getInventoryOverlay(), SimpleMetadata::getString(), ITextureSource::getTexture(), porting::getTimeMs(), ItemStack::getWearBarParams(), IT_ROT_NONE, IT_ROT_OTHER, ITEM_NODE, ITEM_TOOL, itos(), ItemMesh::mesh, MeshTimeInfo::mesh, ItemStack::metadata, MYMIN, ItemMesh::needs_shading, p(), setMeshBufferColor(), stoi, MeshTimeInfo::time, ItemDefinition::type, unescape_enriched(), utf8_to_wide(), and ItemStack::wear.
Referenced by GUIInventoryList::draw(), GUIItemImage::draw(), TextDrawer::draw(), drawItemStack(), GUIFormSpecMenu::drawMenu(), and GUIFormSpecMenu::drawSelectedItem().
|
static |