GdxTextureStoreTest.java 文件源码

java
阅读 36 收藏 0 点赞 0 评论 0

项目:nvlist 作者:
/**
 * Check that the generated {@link TextureParameter} matches the corresponding {@link IImageDefinition}
 * settings for that texture.
 */
@Test
public void testLoadParams() {
    FilePath imagePath = FilePath.of("img/loadparams/loadparams.png");

    Texture tex = texStore.get(imagePath).get();
    Assert.assertNotNull(tex);

    Assert.assertEquals(TextureFilter.MipMapLinearLinear, tex.getMinFilter());
    Assert.assertEquals(TextureFilter.Nearest, tex.getMagFilter());
    Assert.assertEquals(TextureWrap.ClampToEdge, tex.getUWrap());
    Assert.assertEquals(TextureWrap.Repeat, tex.getVWrap());
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号