Skip to content

Commit

Permalink
png support
Browse files Browse the repository at this point in the history
  • Loading branch information
aap committed Jul 23, 2020
1 parent 4946235 commit 49ca300
Show file tree
Hide file tree
Showing 10 changed files with 8,566 additions and 46 deletions.
5 changes: 0 additions & 5 deletions src/bmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
#include "rwobjects.h"
#include "rwengine.h"

#ifdef _WIN32
/* srsly? */
#define strdup _strdup
#endif

#define PLUGIN_ID 0

namespace rw {
Expand Down
1 change: 1 addition & 0 deletions src/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ Engine::start(void)
// Register some image formats. Or should we leave that to the user?
Image::registerFileFormat("tga", readTGA, writeTGA);
Image::registerFileFormat("bmp", readBMP, writeBMP);
Image::registerFileFormat("png", readPNG, writePNG);

Engine::state = Started;
return 1;
Expand Down

0 comments on commit 49ca300

Please sign in to comment.