OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
inventoryrenderer.h
Go to the documentation of this file.
1#pragma once
2
3#include <Tempest/Device>
4#include <Tempest/Matrix4x4>
5
6#include "meshobjects.h"
7#include "sceneglobals.h"
8#include "visualobjects.h"
9
10class Item;
11
13 public:
15
16 void draw(Tempest::Encoder<Tempest::CommandBuffer>& cmd);
17
18 void reset(bool full=false);
19 void drawItem(int x, int y, int w, int h, const Item &item);
20
21 private:
22 struct PerFrame {
23 Tempest::Matrix4x4 mvp;
24 };
25
26 struct Itm {
28 Tempest::Matrix4x4 viewMat;
29 int x=0, y=0, w=0, h=0;
30 };
31
32 SceneGlobals scene;
33 VisualObjects visual;
34 MeshObjects itmGroup;
35 std::vector<Itm> items;
36 };
37
void reset(bool full=false)
void draw(Tempest::Encoder< Tempest::CommandBuffer > &cmd)
void drawItem(int x, int y, int w, int h, const Item &item)
Definition item.h:14