blob: 58ca04f3257accd9460031c3f71bb3d1a0f7b9cd (
plain)
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
|
#ifndef __JIN_IMAGE_H
#define __JIN_IMAGE_H
#include "3rdparty/GLee/GLee.h"
#include "color.h"
#include "drawable.h"
namespace jin
{
namespace render
{
class Image: public Drawable
{
public:
Image(const char* file);
Image(const char* buffer, size_t size);
~Image();
color getPixel(int x, int y);
private:
bool loadf(const char* file);
bool loadb(const char* buffer, size_t size);
color* pixels;
};
}
}
#endif
|