Hi there,
I’m looking for some very simple example of an rendering loop
done the “right” way for a 2D based animation (say a square black
rectangle boucing in a windows).
I’d like it to run in a window (no fullscreen mode) and under Linux,
and using only the base API (no 1.4.2 unsupported sun.misc.* etc.).
The thing is : I don’t know which method I should use
to “paint/repaint/ redraw” what…
It can be Java 1.4 if it changes something in a Window (I know
that for fullscreen you need 1.4, but here it’s only inside a
Window).
I don’t care if the drawing is not synchronized with the vsync (can
it be anyway inside a window ?).
I’d just like to have a loop that is somewhat “efficient”.
Can anybody help by providing a link or a very simple example
that would run under Linux ?
Thanks in advance,
Jean