mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-25 21:31:25 +00:00
15 lines
276 B
C++
15 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();
|
||
|
}
|