I'm trying to scale a window's contents so that every pixel displays at a multiple of it's normal size. Basically I want to achieve larger pixels without scaling each and every individual sprite. This question is very similar to this one, however that only scales a single sprite. How should I go about this?
Ended up figuring out the answer myself through trial and error, solution follows.
You need to import openGL to get access to the scaling function:
Next, toss in the following code after your game's window has been initialized:
At this point your resolution will double, but your window will stay the same size. You can correct this easily by doubling your window's width and height. Furthermore, your textures will appear blurry, so we need to fix that. We need to set parameters for the textures in your on_draw() function:
You should now have pixels displaying at double their original size.