Hide sdl surface

hi

is there some way to hide an sdl surface when an event occurs on some other sdl
surface?

hallo

suppose there is a small surface on some other big surface. Some event occurs,
say for example- mouse click. when this event occurs, the smaller surface should
not be visible i.e. it gets hidden. when I again click , then that smaller
surface should be visible again i.e. it should reappear.

Is there some way to do so?

suppose there is a small surface on some other big surface. Some event occurs,
say for example- mouse click. when this event occurs, the smaller surface should
not be visible i.e. it gets hidden. when I again ?click , then that smaller
surface should be visible again i.e. it should reappear.

What could make it clearer in your mind is that there is no such thing
as “a surface on some other surface”. Surfaces are all independent of
each other, with a number of operations that reads or modifies them
(sometimes both, in the case of a blit, which is a copy).

So there’s just copying of pixel data between surfaces, they’re not
"on top of each other", or “invisible”. There’s exactly one surface
visible (well, in SDL 1.2), the display surface, that’s all.
Everything else, you have to do yourself.On Mon, May 25, 2009 at 3:58 AM, jyoti wrote:


http://pphaneuf.livejournal.com/