mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-21 11:31:07 +00:00
add freeimage test
This commit is contained in:
parent
7096683d24
commit
c18ecef969
1 changed files with 14 additions and 0 deletions
14
test/freeimage.cpp
Normal file
14
test/freeimage.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#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();
|
||||
}
|
Loading…
Reference in a new issue