Hey,
How can I set my rendering hints to be persistent? As in, I want to set them once when I call buffer.getDrawGraphics() and then for all subsequent calls to getDrawGraphics() I want the rendering hints to persist.
Or will I have to make a function that takes a Graphics2D object and then sets the rendering hints on it? Or some third way? I’ve tried with just passing the same Graphics2D object around, but that somehow broke my fullscreen.
Here’s how my rendering loop looks:
do {
do {
Graphics2D g = (Graphics2D) this.gameWindow.buffer.getDrawGraphics();
ScreenManager.render(g);
g.dispose();
} while (strategy.contentsRestored());
strategy.show();
} while (strategy.contentsLost());