Page 1 of 1

[BUG] SCREENSHOT_TYPE

Posted: Wed Oct 19, 2005 22:41
by nwbeeman
My screens save to BMP, but the SCREENSHOT_TYPE cvar is PNG. If the OpenGL system only allows BMP saves, it should set it to BMP.

Posted: Wed Oct 19, 2005 23:02
by Graf Zahl
The screenshot_type CVAR is only for the software renderer.

Posted: Thu Oct 20, 2005 4:17
by SlayeR
DevIL can save screenshots to any format it supports. You need to link ilut though (ilut.dll is only 16kb so it's not really going to make much difference in filesize or anything).

ilGenImages(1, &id);
ilBindImage(id);
ilutGLScreen();
ilSave(IL_PNG, filename);
ilDeleteImages(1, &id);

Posted: Thu Oct 20, 2005 8:37
by Graf Zahl
I don't need ILUT for that. BUt yes, I wanted to add that for some time now. But I don't see any use in saving PCX's so it will be PNG exclusive and the CVAR still won't have any effect.

Posted: Thu Oct 20, 2005 18:20
by timmie
Actually, ZDoomGL basically does that but without ilut. I think ilSaveImage() will automagically save in the correct format for the filename passed in.