Say my window is 1280x720. I want to render my stuff to lower resolution and then stretch it to window. I've tried this:
glViewport(0, 0, 1280 / 2, 720 / 2);
When I call glViewport and pass lesser width and height than window, I get all my OpenGL rendering in left bottom 1/4 of window. I need to scale it (linear filtering preferably) back to window size so I would get a pixelated effect.
I wonder if there is such possibility within glad/glfw API.