(int smooth)
| 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(); |
no outgoing calls
no test coverage detected