Zen
0.3.0
Loading...
Searching...
No Matches
ZEN_Image.h
1
#pragma once
2
3
#include <zen/zen_pch.h>
4
5
namespace
Zen {
6
typedef
struct
Image {
7
unsigned
char
*data =
new
unsigned
char;
8
uint32_t width{0};
9
uint32_t height{0};
10
const
char
*filePath;
11
12
Image() {};
13
Image(
unsigned
char
*data, uint32_t width, uint32_t height,
const
char
*filePath) {
14
this->data = data;
15
this->width = width;
16
this->height = height;
17
this->filePath = filePath;
18
};
19
20
~Image() {
21
delete
this->data;
22
this->data =
nullptr
;
23
};
24
25
}
Image
;
26
};
// namespace Zen
Zen::Image
Definition
ZEN_Image.h:6
engine
zen
textures
ZEN_Image.h
Generated by
1.14.0