now I first use the Slick-Util which lwjgl recommand to load my game data(now just some image^_^)
the code like these:
png = new PNGImageData();
try {
png.loadImage(ResourceLoader.getResourceAsStream("src/img/logo.png"));
System.out.println(png.isRGB());
}
catch (IOException e) {
e.getStackTrace();
}
then I draw image like these:
GL14.glWindowPos2d(20, 20);
//GL11.glBitmap(142, 142, 0, 0, 0, 0, this.byteBuffer);
GL11.glDrawPixels(142, 142, GL11.GL_RGB, GL11.GL_BYTE, png.getImageBufferData());
but the result is let me sad !! image can’t display correct
!!
I don’t know why? how about you to load image and draw it in openGL?
(what I sad about is 2d Image not Texture, but I can’t find any tutorial for 2D openGL)
Thx for help^_^