MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

ikk
MAME Fan
Reged: 11/15/06
Posts: 2
Send PM


Dumping images on every frame
#93493 - 11/15/06 05:42 PM


Hi.

I have a question about mame source code from mame.net.

Im trying to save graphic elements mame is drawing every frame.
So far I've modifed the source to call my function on every frame.
I have modified draw_video_contents()
function in "src\windows\window.c" to call my function from .dll,
im doing this by passing window handle to it, so im able to save each frame to
.bmp file using window HDC.
Now i'm looking for something more complicated.

How to distinguish images that are drawn in current frame?
For example, character sprites or background images.
Can it be done with 'render_primitive_list' member of 'win_window_info'
structure and how ?

Thanks in advance



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9711
Loc: ECV-197 The Orville
Send PM


Re: Dumping images on every frame new [Re: ikk]
#95841 - 12/09/06 06:57 PM


> How to distinguish images that are drawn in current frame?
> For example, character sprites or background images.
> Can it be done with 'render_primitive_list' member of 'win_window_info'
> structure and how ?

You can't from that level - the primitive list for the game graphics always includes *all* of the game graphics. You would have to modify the driver for each game to only output the sprites or whatever. (And for bitmap games like Mortal Kombat that's not even possible).


Pages: 1

MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Pi 
0 registered and 5 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3169