Game Development Reference
In-Depth Information
@Override
public void pause() {
}
@Override
public void resume() {
}
@Override
public void dispose() {
}
}
}
The rest of the class is just boilerplate code. In the update() method, we make sure that our
event buffers don't get filled up. The rest of the code does nothing.
Note From here on, we'll only focus on the Screen classes themselves, as the enclosing
GLGame derivatives, such as FirstTriangleTest , will always be the same. We'll also reduce
the code size a little by leaving out any empty or boilerplate methods of the Screen class. The
following examples will all just differ in terms of members, constructors, and present methods.
Figure 7-7 shows the output of Listing 7-5.
Figure 7-7. Our first attractive triangle
Search WWH ::




Custom Search