Original Post
ILuint image;
ilGenImages(1, ℑ);
ilBindImage(image);
ilTexImage(width, height, 1, 4, IL_RGBA, IL_BYTE, pixels);
ilEnable(IL_FILE_OVERWRITE);
ilSave(IL_PNG, "output.png");
ilDeleteImages(1, ℑ);
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more