LWJGL Forum

Programming => OpenGL => Topic started by: marcusant on January 02, 2014, 22:30:01

Title: Multiplayer split screen
Post by: marcusant on January 02, 2014, 22:30:01
In my game I'm trying to have two different cameras that are bound to players (one of the left side of the screen, one on the right). I'm curious as to what would be the most efficient way to render multiple cameras at different coordinates and angles onto certain areas of the screen.
Title: Re: Multiplayer split screen
Post by: Cornix on January 02, 2014, 22:49:37
You first set glViewport to one of the halfs of the screen, render everything from the perspective of the first player, then you set glViewport to the other half of your screen and render the perspective from the second player.