(int smooth)
| 425 | |
| 426 | |
| 427 | static public int smoothToSamples(int smooth) { |
| 428 | if (smooth == 0) { |
| 429 | // smooth(0) is noSmooth(), which is 1x sampling |
| 430 | return 1; |
| 431 | } else if (smooth == 1) { |
| 432 | // smooth(1) means "default smoothing", which is 2x for OpenGL |
| 433 | return 2; |
| 434 | } else { |
| 435 | // smooth(N) can be used for 4x, 8x, etc |
| 436 | return smooth; |
| 437 | } |
| 438 | } |
| 439 | |
| 440 | |
| 441 | abstract public Object getNative(); |
no outgoing calls
no test coverage detected