Mirage Source http://web.miragesource.net/forums/ |
|
Explain Bltplayer Sub http://web.miragesource.net/forums/viewtopic.php?f=210&t=469 |
Page 1 of 1 |
Author: | Remedy [ Mon Sep 04, 2006 5:55 pm ] |
Post subject: | Explain Bltplayer Sub |
Some please explain the bltplayer sub for me? I mean all the code it contains. Or just rec.top, rec.bottom, etc. |
Author: | Verrigan [ Mon Sep 04, 2006 7:16 pm ] |
Post subject: | |
Bltplayer does a bit block transfer of the player sprite(s) to the game window. rec.top = the top pixel location of the source or destination device context. (DD surface / game window) rec.left = the left pixel location of the source or destination device context. (DD surface / game window) rec.bottom = the bottom pixel location of the source or destination device context. (DD surface / game window) rec.right = the right pixel location of the source or destination device context. (DD surface / game window) rec.bottom - rec.top + 1 = the height of the section you want to do the bit block transfer of/to. rec.right - rec.left + 1 = the width of the section you want to do the bit block transfer of/to. Hope that explained it for ya.. If not, feel free to post more questions. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |