Results 1 to 5 of 5

Thread: Splitscreen

  1. #1
    Member Contributor
    Join Date
    Jan 2001
    Location
    Germany
    Posts
    55

    Splitscreen

    Say im in 800x600x16 fullscreen mode.
    I want to split the screen into two screens.
    Like in two player racing games. Both should see diffrent parts of the world.
    Does anyone have an idea how i could do that.
    Thanks in advance.
    -http://starnut.9ug.com
    Programming in Directx and Opengl

  2. #2
    Junior Member Newbie
    Join Date
    Jan 2001
    Posts
    29

    Re: Splitscreen

    If you use GLUT, it's easy... just create a couple subwindows.

  3. #3
    Member Contributor
    Join Date
    Jan 2001
    Location
    Germany
    Posts
    55

    Re: Splitscreen

    If you use GLUT, it's easy... just create a couple subwindows.
    Sounds good:
    Could you give me an example code.
    Thanks
    -http://starnut.9ug.com
    Programming in Directx and Opengl

  4. #4
    Member Contributor
    Join Date
    Oct 2000
    Location
    london, england
    Posts
    76

    Re: Splitscreen

    too get a spli screen u will need to have 2 view ports

    glViewport(....)
    3d geometry
    glViewport(....)
    3d geometry

    given thar ur resolution is 600x800 then the parameters for this will be

    glViewport(0,0,800,300) and
    glViewport(300,0,800,600) respectively

    this will give u a horizontal split screen.

    Hope that helps!!

    Zee
    Later

    Zee

  5. #5
    Member Contributor
    Join Date
    Jan 2001
    Location
    Germany
    Posts
    55

    Re: Splitscreen

    Hope that helps!!
    Thanks its just what i was looking for, I
    got the splitscreen working now.
    Thanks
    -http://starnut.9ug.com
    Programming in Directx and Opengl

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean