aboutsummaryrefslogtreecommitdiff
path: root/KaplaDemo/samples/sampleViewer3/BmpFile.h
blob: 8e4206d22b6b54d0061c1569c1569b38357a9cb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef BMP_LOADER_H
#define BMP_LOADER_H

class BmpLoaderBuffer
{
public:

	BmpLoaderBuffer(void);
	~BmpLoaderBuffer(void);

	// Data is persists until the class is destructed.
	bool loadFile(const char *filename); 

	int	           mWidth;
	int	           mHeight;
	unsigned char *mRGB;
};

bool saveBmpRBG(const char *filename, int width, int height, void *data);

#endif