使用 Slick 库进行纹理处理?
所以我有两个问题。
- 我有一个 16x16 的图像,效果很好...... 当我说信息时图像尺寸是 16x16 纹理大小是 16x16
我有一个 100x100 图像,当我说出信息时...... 图像尺寸为 100x100,但是, 纹理大小是 128x128...
我不知道为什么会这样,但它把一切都搞砸了!
- 16x16 是像素的(我想要的),但我想显示它 在 100x100 的表面上,它会模糊它!我不想让它变得模糊 我希望它看起来像原来的一样。这可能吗?
So I have 2 issues.
- I have a 16x16 image that works fine...
When I say the info the image size is 16x16
and the texture size is 16x16
I have a 100x100 image that when I say the info...
The image size is 100x100 but,
The texture size is 128x128...
I don't know why this is but it screws everything up!
- The 16x16 is pixely (What I want) but I want to display it
on a 100x100 surface and it blurs it! I don't want it blurred
I want it to look like the original. Is this possible?
使用基本 OpenGL 时,您需要使用 2 的幂纹理。
You need to use a power of 2 texture when using basic OpenGL.