blob: 063f7762ca1d53e40b7932e9fed9f1d1f23b5545 (
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 "libs/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
|