summaryrefslogtreecommitdiff
path: root/image.h
blob: 41b0ed2ca951f7023ff94e432152c7f120b5c9ca (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
#ifndef IMAGE_H
#define IMAGE_H

#include <stdint.h>
#include <string>

class Image {
	public:
		Image();
		Image(const std::string& filename);
		~Image();
		
		void load(const std::string& filename);
		
		unsigned int w() const;
		unsigned int h() const;
		unsigned int f() const;
		const void* d() const;
		
	protected:
		unsigned int width;
		unsigned int height;
		unsigned int format;
		void* data;
};

#endif