le3d - LightEngine 3D
A straightforward C++ 3D software engine for real-time graphics
bmpfile.h
Go to the documentation of this file.
1 
33 #ifndef LE_BMPFILE_H
34 #define LE_BMPFILE_H
35 
36 #include "global.h"
37 #include "config.h"
38 
39 #include "bitmap.h"
40 #include <stdio.h>
41 
42 /*****************************************************************************/
47 class LeBmpFile
48 {
49 public:
50  LeBmpFile(const char * filename);
51  ~LeBmpFile();
52 
53  LeBitmap * load();
54  void save(const LeBitmap * bitmap);
55 
56 private:
57  int readBitmap(FILE * file, LeBitmap * bitmap);
58  int writeBitmap(FILE * file, const LeBitmap * bitmap);
59  char * path;
60 };
61 
62 #endif // LE_BMPFILE_H
LightEngine 3D: General engine configuration file.
LightEngine 3D: Global helpers and definitions.
LeBmpFile(const char *filename)
Definition: bmpfile.cpp:92
void save(const LeBitmap *bitmap)
Save bitmap data into the file.
Definition: bmpfile.cpp:128
Contain and manage a RGB or RGBA 32bit bitmap image.
Definition: bitmap.h:58
LeBitmap * load()
Load bitmap data from the file.
Definition: bmpfile.cpp:109
LightEngine 3D: Bitmap image container & manipulator.
~LeBmpFile()
Definition: bmpfile.cpp:98
Load and store bitmaps in uncompressed MS Windows bitmap format.
Definition: bmpfile.h:47