projects
/
demo
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
srgb textures, cubemap support
[demo]
/
src
/
image.h
1
#ifndef IMAGE_H_
2
#define IMAGE_H_
3
4
class Image {
5
public:
6
int w;
7
int h;
8
unsigned char *pixels;
9
10
Image();
11
~Image();
12
13
Image(const Image &image);
14
Image &operator =(const Image &image);
15
16
/*
17
move constructor: called when you assign
18
an rvalue reference
19
*/
20
Image(Image &&image); // rvalue reference
21
Image &operator =(Image &&image);
22
23
bool load(const char *fname);
24
};
25
26
#endif // IMAGE_H_