implemented image format registry

This commit is contained in:
aap
2020-05-01 21:02:37 +02:00
parent fd191856c4
commit 02921ff848
6 changed files with 1630 additions and 27 deletions
+5
View File
@@ -182,6 +182,7 @@ Engine::init(void)
// core plugin attach here
Frame::registerModule();
Image::registerModule();
Raster::registerModule();
Texture::registerModule();
@@ -279,6 +280,10 @@ Engine::start(void)
engine->device.system(DEVICEFINALIZE, nil, 0);
// Register some image formats. Or should we leave that to the user?
Image::registerFileFormat("tga", readTGA, writeTGA);
Image::registerFileFormat("bmp", readBMP, writeBMP);
Engine::state = Started;
return 1;
}