-
Notifications
You must be signed in to change notification settings - Fork 0
/
timage.h
25 lines (22 loc) · 638 Bytes
/
timage.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
#ifndef TIMAGE_H
#define TIMAGE_H
#include <iostream>
#include <vector>
class TImage {
public:
TImage(const int &width, const int &height);
inline int getWidth() const { return width; }
inline int getHeight() const { return height; }
inline std::string getName() const { return name; }
inline std::vector<unsigned char> &getData() { return data; }
inline std::vector<float> &getDepthBuffer() { return depthBuffer; }
void save(const std::string &filename);
void restart();
private:
int width;
int height;
std::vector<unsigned char> data;
std::vector<float> depthBuffer;
std::string name;
};
#endif // TIMAGE_H