-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathImage2D.h
58 lines (41 loc) · 1.24 KB
/
Image2D.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#pragma once
#include "irrlicht.h"
#include "IrrManagers.h"
#include "Vector2D.h"
#include "Vector4D.h"
#include "Texture.h"
#include <string>
#include <vector>
#include "Compatible2D.h"
class Image2D : public Compatible2D {
public:
irr::gui::IGUIImage* img = nullptr;
Image2D();
Image2D(const Texture& tex);
Image2D(const Texture& tex, const Vector2D& pos);
Image2D(const Texture& tex, const Vector2D& pos, const Vector2D& dimensions);
Image2D(const Image2D& other);
Vector4D getColor();
void setColor(Vector4D& color);
bool getVisible();
void setVisible(bool vis);
Vector2D getPosition();
void setPosition(const Vector2D& pos);
Vector2D getSize();
void setSize(const Vector2D& size);
void setImage(const Texture& tex);
void destroy();
void bringToFront();
void sendToBack();
bool scalesToFit();
void setScalesToFit(bool scale);
void setBorderAlignment(int a, int b, int c, int d);
void setMaxSize(const Vector2D& max);
bool getEnabled();
void setEnabled(bool enable);
bool getUseAlpha();
void setUseAlpha(bool enable);
void setParent(const Image2D& other);
irr::gui::IGUIElement* getNode() const override { return img; }
};
void bindImage2D();