a lot of time has passed since I was into java game development, but now I need some update
(of the last years
For the basics in active rendering and fullscreen/ windowed mode I looked into Kevs example of
Space Invaders. What confuses me is the way of using the graphic components. In his example
is basically this:
public class Game extends Canvas
JFrame container = new JFrame("Space Invaders 101");
JPanel panel = (JPanel) container.getContentPane();
strategy = getBufferStrategy();
My main problem is to understand which component specifies the graphical configuration (rendering
method, acceleration etc). In the example the configuration is made for the canvas, not for the top
level Container. Is this enough to activate direct rendering? Should'nt the Jframe setIgnoreRepaint(true)?
Could something happen like an embedded component is configured for active rendering and creates
the suitable Bufferstrategy but the enclosing Component (in this case the JFrame) is running in passive
rendering mode? That would mess up both strategies ..