Le Friday 23 December 2011 21:02:17, Kartik Thakore a écrit :
Regarding the surface, SDLx::App is a SDLx::Surface. That's what I
was referring to. I don't think it's safe to make any assumptions
about what's behind the text, so it should be the module user's
responsibility to clear
Dumont [mailto:domi.dum...@free.fr]
Gesendet: Sonntag, 25. Dezember 2011 10:24
An: sdl-devel@perl.org
Betreff: Re: SDLx::Text - replace old text?
Le Friday 23 December 2011 21:02:17, Kartik Thakore a écrit :
Regarding the surface, SDLx::App is a SDLx::Surface. That's what I
was referring
Le Thursday 22 December 2011 00:17:07, Alex a écrit :
First, the text Hello World! is drawn to the surface. Then, I alter the
text and draw it again. But the old hello world text still remains on the
surface.
I don't want that. I want Hello World! to disappear and Susan so show up.
You have
::Surface for more information.
Cheers,
Jeff
On Wed, Dec 21, 2011 at 6:17 PM, Alex cap...@gmx.de wrote:
Dear all!
I want to replace an SDLx::Text by some other text.
Do I have to redraw the whole surface that was covered by the old text in
order to replace it by a new text?
The following script
in SDLx::Surface for more information.
Cheers,
Jeff
On Wed, Dec 21, 2011 at 6:17 PM, Alex cap...@gmx.de wrote:
Dear all!
I want to replace an SDLx::Text by some other text.
Do I have to redraw the whole surface that was covered by the old text in
order to replace it by a new text
, 0x00FF );
The undef there indicates that the entire surface should be used as
the rectangle. See draw_rect in SDLx::Surface for more information.
Cheers,
Jeff
On Wed, Dec 21, 2011 at 6:17 PM, Alex cap...@gmx.de wrote:
Dear all!
I want to replace an SDLx::Text by some other text
. See draw_rect in SDLx::Surface for more information.
Cheers,
Jeff
On Wed, Dec 21, 2011 at 6:17 PM, Alex cap...@gmx.de wrote:
Dear all!
I want to replace an SDLx::Text by some other text.
Do I have to redraw the whole surface that was covered by the old
text
in
order
Dear all!
I want to replace an SDLx::Text by some other text.
Do I have to redraw the whole surface that was covered by the old text in
order to replace it by a new text?
The following script demonstrates my problem:
[code]
#!perl
use strict;
use warnings;
use SDL;
use SDL;
use SDLx::App