我試圖創建一個新的紋理:爲什麼TextureIO不接受newTexture(BufferedImage中,布爾
BufferedImage image = ImageIO.read(new File("firstImage.jpg"));
Texture t = TextureIO.newTexture(image,true);
,但得到
在類型TextureIO
方法newTexture(File, boolean)
是不適用於arguments (BufferedImage, boolean)
。
我進口
import com.jogamp.opengl.util.texture.TextureIO;
根據Javadoc應該閱讀newTexture(BufferedImage, Boolean)
那麼我做錯了什麼?