blob: 7375fc46999104c24c4e882d316e0396d0fb8654 (
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
34
|
#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();
~Image();
// just like Image()
void init();
// load from file
bool loadf(const char* f);
// load from memory
bool loadb(const char* b, int size);
color getPixel(int x, int y);
private:
color* pixels;
};
}
}
#endif
|