Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

I want to draw a PGraphics to screen without bilinear filtering

$
0
0
Every time Processing gets updated, I have to come up with a different solution for this.

I have a small (say 320x240) PGraphics as an off-screen buffer to draw on. Then I want to stretch this PGraphics over the whole screen, but without any filtering! I want to see the hard-edged blown-up pixels.

In the 2.0 preview builds, I always used
  1. ((PGraphicsOpenGL)g).textureSampling(2);
in my setup() method. (got this from here)
This has stopped working!

Please, can anyone help me out on this, I use pixel-art in my sketches and that just looks bad with filtering.


Viewing all articles
Browse latest Browse all 1768

Trending Articles