Hey, I'm a bit of a noobie around here, but I'm trying to learn. That said, here's my trouble:
This code fails to draw a square into the corner of the JFrame I'm using (a proof of concept - If I can draw a square, I can draw an image as well):
while (frame.isShowing()) {
buffer.clear(java.awt.Color.BLUE);
world.renderScene(buffer);
world.draw(buffer);
buffer.update();
Graphics g = buffer.getGraphics();
g.fillRect(0, 0, 10, 10);
buffer.displayGLOnly();
canvas.repaint();
Thread.sleep(10);
}
Is there something I'm missing?