#include "client/hud.h"
#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"
Classes | |
struct | MeshTimeInfo |
Macros | |
#define | OBJECT_CROSSHAIR_LINE_SIZE 8 |
#define | CROSSHAIR_LINE_SIZE 10 |
Functions | |
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 |
#define OBJECT_CROSSHAIR_LINE_SIZE 8 |
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 | ||
) |
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(), ITextureSource::getTexture(), porting::getTimeMs(), ItemDefinition::inventory_image, ItemDefinition::inventory_overlay, IT_ROT_NONE, IT_ROT_OTHER, ITEM_NODE, ITEM_TOOL, itos(), MeshTimeInfo::mesh, ItemMesh::mesh, MYMIN, ItemDefinition::name, ItemMesh::needs_shading, p(), setMeshBufferColor(), MeshTimeInfo::time, ItemDefinition::type, utf8_to_wide(), and ItemStack::wear.
Referenced by GUIInventoryList::draw(), GUIItemImage::draw(), TextDrawer::draw(), Hud::drawItem(), drawItemStack(), GUIFormSpecMenu::drawMenu(), and GUIFormSpecMenu::drawSelectedItem().