zdoom-macos-deps/test/freeimage.cpp
2021-06-23 10:19:35 +03:00

14 lines
276 B
C++

#include <FreeImage.h>
int main()
{
FreeImage_Initialise(0);
FIBITMAP* bitmap = FreeImage_Allocate(64, 64, 32);
AEDI_EXPECT(bitmap != nullptr);
AEDI_EXPECT(FreeImage_HasPixels(bitmap) == TRUE);
FreeImage_Unload(bitmap);
FreeImage_DeInitialise();
}