mirror of
				https://github.com/davidgiven/fluxengine.git
				synced 2025-10-24 11:11:02 -07:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			379 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			379 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef BITMAP_H
 | |
| #define BITMAP_H
 | |
| 
 | |
| class Agg2D;
 | |
| 
 | |
| class Bitmap
 | |
| {
 | |
| public:
 | |
|     Bitmap(const std::string filename, unsigned width, unsigned height);
 | |
| 
 | |
|     Agg2D& painter();
 | |
|     void save();
 | |
| 
 | |
| private:
 | |
|     std::vector<uint8_t> _bitmap;
 | |
|     std::unique_ptr<Agg2D> _painter;
 | |
| 
 | |
| public:
 | |
|     std::string filename;
 | |
|     unsigned width;
 | |
|     unsigned height;
 | |
|     bool initialised : 1;
 | |
| };
 | |
| 
 | |
| #endif
 |