mirror of
https://github.com/love2d/megasource.git
synced 2026-08-16 00:02:15 +02:00
Add DevIL 1.7.8.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#include <IL/devil_cpp_wrapper.hpp>
|
||||
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
if (argc < 2) {
|
||||
cout << "Please specify a filename." << endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
ilImage Image(argv[1]);
|
||||
|
||||
cout << Image.Width() << 'x' << Image.Height() << '@' << (ILuint)Image.Bpp() << endl;
|
||||
|
||||
ilEnable(IL_FILE_OVERWRITE);
|
||||
|
||||
Image.Save("test.tga");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user