Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
drawItemStack.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2024 cx384
4
5#pragma once
6
7#include <IGUIFont.h>
8#include <IVideoDriver.h>
9#include "irrlichttypes.h"
10#include "irr_v3d.h"
11
12struct ItemStack;
13class Client;
14
23
24void drawItemStack(video::IVideoDriver *driver,
25 gui::IGUIFont *font,
26 const ItemStack &item,
27 const core::rect<s32> &rect,
28 const core::rect<s32> *clip,
30 ItemRotationKind rotation_kind);
31
32void drawItemStack(
33 video::IVideoDriver *driver,
34 gui::IGUIFont *font,
35 const ItemStack &item,
36 const core::rect<s32> &rect,
37 const core::rect<s32> *clip,
39 ItemRotationKind rotation_kind,
40 const v3s16 &angle,
41 const v3s16 &rotation_speed);
Definition client.h:106
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)
Definition drawItemStack.cpp:303
ItemRotationKind
Definition drawItemStack.h:16
@ IT_ROT_OTHER
Definition drawItemStack.h:20
@ IT_ROT_NONE
Definition drawItemStack.h:21
@ IT_ROT_HOVERED
Definition drawItemStack.h:18
@ IT_ROT_DRAGGED
Definition drawItemStack.h:19
@ IT_ROT_SELECTED
Definition drawItemStack.h:17
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
Definition activeobjectmgr.cpp:11
Definition inventory.h:21