Drawing line

Hello,
I would like to know if SDL_UpdateRects is the only way to get things showed on the screen.
For example if I have to draw a line from the top left corner to the bottom right one I have to update the whole screen?
Such a thing doesnt degradate prestactions?

tanx in advance.---------------------------------
Scopri Mister Yahoo! - il fantatorneo sul calcio di Yahoo! Sport’

Hi Gino,

If you think about it, it’s not impractical. For example, if you are
doing a user GUI, or the like (2D with little motion,) having to update
the whole screen is most probably practical.
And if you are doing a game or such, you can do all your changes and
then update the affected areas (possibly the whole screen.) Which is not
a bad thing, since you can make it quite fast.
Is that what you asked, or I’m missing the point entirely?

-yzt

Gino Pischella wrote:> Hello,

I would like to know if SDL_UpdateRects is the only way to get things
showed on the screen.
For example if I have to draw a line from the top left corner to the
bottom right one I have to update the whole screen?
Such a thing doesnt degradate prestactions?

tanx in advance.


Scopri Mister Yahoo!
http://it.rd.yahoo.com/mail/taglines/*http://it.seriea.fantasysports.yahoo.com

  • il fantatorneo sul calcio di Yahoo! Sport’


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Yes, you got the point.
Tanx…
…I’ll do that way

Yaser Zhian wrote:
Hi Gino,

If you think about it, it’s not impractical. For example, if you are
doing a user GUI, or the like (2D with little motion,) having to update
the whole screen is most probably practical.
And if you are doing a game or such, you can do all your changes and
then update the affected areas (possibly the whole screen.) Which is not
a bad thing, since you can make it quite fast.
Is that what you asked, or I’m missing the point entirely?

-yzt

Gino Pischella wrote:> Hello,

I would like to know if SDL_UpdateRects is the only way to get things
showed on the screen.
For example if I have to draw a line from the top left corner to the
bottom right one I have to update the whole screen?
Such a thing doesnt degradate prestactions?

tanx in advance.


Scopri Mister Yahoo!

  • il fantatorneo sul calcio di Yahoo! Sport’


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Scopri Mister Yahoo! - il fantatorneo sul calcio di Yahoo! Sport’

No. You could update a number of small sections of the screen.
If your screen is 640x480, and you draw from 0,0 to 639,479, you can
update ten 64x48 rectangles to get the line on the screen,
rather than one 640x480 rectangle. Or you could do five 128x96 rectangles.
And so on… :slight_smile:

-bill!
bill at newbreedsoftware.com “In the age where you can find your mate
http://www.newbreedsoftware.com/ online, it’s only logical that you can get
New Breed Software get rid of them there, as well.” -Ed HelmsOn Wed, Sep 15, 2004 at 10:23:24AM +0200, Gino Pischella wrote:

Hello,
I would like to know if SDL_UpdateRects is the only way to get things showed on the screen.
For example if I have to draw a line from the top left corner to the bottom right one I have to update the whole screen?