OpenGL viewport from -50 to 50 instead of -1 to 1

  2d, c++, opengl, viewport

Is there a simple and efficient way to make the 2D OpenGL viewport go from -50 to 50 instead of the usual -1 to 1? Or to be able to scale it by any amount?

Source: Windows Questions C++

LEAVE A COMMENT