[BUG] SCREENSHOT_TYPE

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
nwbeeman
Posts: 146
Joined: Mon Oct 17, 2005 1:18
Location: Tampa

[BUG] SCREENSHOT_TYPE

Post 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.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

The screenshot_type CVAR is only for the software renderer.
SlayeR
Posts: 120
Joined: Wed Aug 31, 2005 6:23
Location: Somewhere
Contact:

Post 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);
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post 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.
timmie
Posts: 15
Joined: Tue Sep 27, 2005 9:26
Location: Vancouver, BC
Contact:

Post 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.
Locked

Return to “Closed Bugs”