zdoom-macos-deps/test/freeimage.cpp

15 lines
276 B
C++
Raw Normal View History

2021-06-23 07:19:35 +00:00
#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();
}