|
#1
|
|||
|
|||
|
In order to move an object on screen, rather than clear the screen and redraw everything, is it possible to undraw, i.e. draw the same object but XOR so that it wipes out, then draw it in a different position?
My difficulty in trying to test this is that I can find how to write a pixel but not to read one. Any assistance appreciated. |
|
|
|||
|
|
|
#2
|
||||
|
||||
|
There is no function to read a pixel I'm afraid, which is a real pity.
And the most effective way we currently know to undraw an object is to cover it with only the necessary part of the background, which is an easy fix if the bg is a solid piece. If it's made from several images it'll be more of a pain and you might have to redraw it all.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it! Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it. Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^ |
|
#3
|
|||
|
|||
|
Thanks habhome. It is a pity indeed, perhaps in a future firmware release this might be made available. I don't want to be a pain but...
Is it feasible to keep a manual copy of the screen buffer, or can I get access to the buffer or get it to copy elsewhere also? [EDIT] Is it quicker to draw a complex pattern on screen or to load a bitmap? |
|
#4
|
||||
|
||||
|
No, I don't think there is any way to access the screen buffer to copy it.
And about your edit, I am not sure. I think that what matters is how many pixels have to change from before, but of course if it is very complex then you will earn a few iterations from loading a bitmap, although you'll have to load it in the beginning or right before you use it, so that'll also take time. I suggest you try it out and tell us if you feel like it. Myself I use mostly loaded resources instead of drawing complex things on the player.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it! Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it. Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^ |
|
#5
|
|||
|
|||
|
Thanks again Habhome. I'll do some experiments. It seems that the method you use is similar to an animation movie; you effectively produce each total frame dependent on user interaction.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 10:38 AM.











Linear Mode
