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

Function main

DevIL/examples/cpp_wrapper_example/il_wrap.cpp:6–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4using namespace std;
5
6int main(int argc, char **argv)
7{
8 if (argc < 2) {
9 cout << "Please specify a filename." << endl;
10 return 1;
11 }
12
13 ilImage Image(argv[1]);
14
15 cout << Image.Width() << 'x' << Image.Height() << '@' << (ILuint)Image.Bpp() << endl;
16
17 ilEnable(IL_FILE_OVERWRITE);
18
19 Image.Save("test.tga");
20
21 return 0;
22}
23

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