Trying to split the screen

Hi again!
And another question! How can one make the splitscreen?
Thx!
Adam Tokarski----------------------------------------------------
HITY LATA 2004 - mo?esz je mie? je w TWOJEJ KOM?RCE! Zobacz i wybierz:
http://klik.wp.pl/?adr=http%3A%2F%2Flogodzwonki.wp.pl%2Fkategoria.html%3Fkat%3Dk15%26ng%3D6&sid=227

if you are doing a game in straight up 2d sdl, split screen is as simple as
just drawing 1st player to the top half of the screen and 2nd player to the
bottom half

if you’re doing opengl 3d stuffs, thats an opengl question not an sdl
question.

but even so, check this out: http://nehe.gamedev.net/lesson.asp?index=09

check out the one labeled “Multiple Viewports”.> ----- Original Message -----

From: zeusa@wp.pl (Adam Tokarski)
To:
Sent: Wednesday, August 18, 2004 1:15 PM
Subject: [SDL] trying to split the screen

Hi again!
And another question! How can one make the splitscreen?
Thx!
Adam Tokarski


HITY LATA 2004 - mo?esz je mie? je w TWOJEJ KOM?RCE! Zobacz i wybierz:

http://klik.wp.pl/?adr=http%3A%2F%2Flogodzwonki.wp.pl%2Fkategoria.html%3Fkat%3Dk15%26ng%3D6&sid=227


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

Hi!
I would suggest setting the clipping rect (SDL_SetClipRect) to one side
of the screen, drawing to it, and then setting the clipping rect to the
other side of the screen and drawing the other stuff :slight_smile:

Adam Tokarski wrote:>Hi again!

And another question! How can one make the splitscreen?
Thx!
Adam Tokarski