Window::useTextureSampling()
Chooses how pictures are smoothed when they are drawn larger or smaller than they really are. Pixel art usually wants TextureSampling.POINT.
Call it before the first stage is created.
Window.useTextureSampling(TextureSampling.POINT);
new MyStage();
Syntax
Java
.useTextureSampling(sampling)
Parameters
| Name | Data Type | Description |
|---|---|---|
| sampling | TextureSampling | how to smooth pictures |
Return
void