From 3dfe2108cfab31ba3ee5527e217d0d8e99a51162 Mon Sep 17 00:00:00 2001 From: git perforce import user Date: Tue, 25 Oct 2016 12:29:14 -0600 Subject: Initial commit: PhysX 3.4.0 Update @ 21294896 APEX 1.4.0 Update @ 21275617 [CL 21300167] --- KaplaDemo/samples/sampleViewer3/BmpFile.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 KaplaDemo/samples/sampleViewer3/BmpFile.h (limited to 'KaplaDemo/samples/sampleViewer3/BmpFile.h') diff --git a/KaplaDemo/samples/sampleViewer3/BmpFile.h b/KaplaDemo/samples/sampleViewer3/BmpFile.h new file mode 100644 index 00000000..8e4206d2 --- /dev/null +++ b/KaplaDemo/samples/sampleViewer3/BmpFile.h @@ -0,0 +1,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 -- cgit v1.2.3