- improved performance and bug fixes.

This commit is contained in:
Mark Vejvoda
2010-11-09 09:06:52 +00:00
parent 2440d475b3
commit d89953ee96
26 changed files with 429 additions and 764 deletions

View File

@@ -15,6 +15,7 @@
#include <string>
#include "vec.h"
#include "types.h"
#include <map>
#include "leak_dumper.h"
using std::string;
@@ -160,7 +161,6 @@ protected:
int components;
uint8 *pixels;
string path;
public:
//constructor & destructor
Pixmap2D();

View File

@@ -124,8 +124,8 @@ protected:
public:
void load(const string &path);
Pixmap2D *getPixmap() {return &pixmap;}
const Pixmap2D *getPixmap() const {return &pixmap;}
Pixmap2D *getPixmap() {return &pixmap;}
const Pixmap2D *getPixmapConst() const {return &pixmap;}
virtual string getPath() const;
virtual void deletePixels();
virtual uint64 getPixelByteCount() const {return pixmap.getPixelByteCount();}