MCPcopy Create free account
hub / github.com/DentonW/DevIL / main

Function main

DevIL/cpp wrapper/il_wrap.cpp:9–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include <iostream.h>
8
9int main(int argc, char **argv)
10{
11 if (argc < 2) {
12 cout << "Please specify a filename." << endl;
13 return 1;
14 }
15
16 ilImage Image(argv[1]);
17
18 cout << Image.Width() << ' ' << Image.Height() << ' ' << (ILuint)Image.Bpp() << endl;
19
20 ilEnable(IL_FILE_OVERWRITE);
21
22 Image.Save("test.tga");
23
24 return 0;
25}
26#endif
27
28

Callers

nothing calls this directly

Calls 4

WidthMethod · 0.45
HeightMethod · 0.45
BppMethod · 0.45
SaveMethod · 0.45

Tested by

no test coverage detected