MCPcopy Create free account
hub / github.com/benfry/processing4 / smoothToSamples

Method smoothToSamples

core/src/processing/opengl/PGL.java:468–479  ·  view source on GitHub ↗
(int smooth)

Source from the content-addressed store, hash-verified

466
467
468 static public int smoothToSamples(int smooth) {
469 if (smooth == 0) {
470 // smooth(0) is noSmooth(), which is 1x sampling
471 return 1;
472 } else if (smooth == 1) {
473 // smooth(1) means "default smoothing", which is 2x for OpenGL
474 return 2;
475 } else {
476 // smooth(N) can be used for 4x, 8x, etc
477 return smooth;
478 }
479 }
480
481
482 abstract public Object getNative();

Callers 2

initOffscreenMethod · 0.95
initGLMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected