Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Sun Apr 28, 2024 5:46 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: capture.c revision
PostPosted: Thu Jun 22, 2006 7:13 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Permission to commit a few changes over 2d capture:

-I have fixed the jpeg capture function (it was capturing with TGA format file).
-Added a new raydium_capture_frame_jpeg_auto () That captures automatically the frame but coding it in jpeg format, without asking name.
-Added and updated some doc (in capture.h)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 22, 2006 7:33 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Good point for the raydium_capture_frame_jpeg() bug ! :)
For the jpeg_auto, you use the same "filename format" as raydium_capture_frame_auto() ? If yes, it's probably a good idea to move all the gmtime() stuff in another function so we don't duplicate it. Something like "void raydium_capture_filename_auto(char *dest)" perhaps ?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 22, 2006 7:44 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
about the gmtime() i have think :
-should be better to have the screenshots in a split folder like screenshots/ or captures/, but i have no idea of how to make folders in win32 :P
- the captures could have the following format:
raycap1.jpg
That 1 will be a incremental counter.
That way have a problem, if you launch the game a second time, the new captures will erase the older ones, so we can do a previous scan in the capture flder to see the last number...

Anyway, i don't have clear what's the problem with gmtime() ? And duplicate two gmtime strings is quite difficult...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 22, 2006 7:58 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
There's no problem! :) It's just that you'll probably need to duplicate this code (string generation) in both functions. (I like to have the date of the capture on the filename)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 176 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group