Libgdx使用ShapeRenderer画图形,设置抗锯齿

来源:互联网 发布:淘宝极有家装修日记 编辑:程序博客网 时间:2024/05/22 19:55

在使用ShapeRenderer画圆或者直线时,在较低分辨率下的设备上,经常会发现有锯齿存在, 使用如下方法可以较完美的解决此问题

AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();        config.numSamples = 4;initialize(new ApplicationAdapter(), config);
7 0