我正在读取dds纹理,但是一旦构建了jar文件,我就无法通过url和file访问这些纹理,必须使用InputStream来代替。
url
file
InputStream
所以我需要知道如何从java.io.InputStream中获取java.nio.ByteBuffer。
java.io.InputStream
java.nio.ByteBuffer
附注:无论通过第三方库还是其他方式,我只需要它能正常工作。
用户名或电子邮箱地址
密码