Games Programming with Java and Java 3D
save files or communicate with different hosts.
· Pure Java applications. The meaning of `pure' is somewhat vague since
seemingly pure libraries, such as Java 3D, utilise code outside of Java, hidden
from the programmer.
· Dirty Java applications. Dirty Java programs use a mix of Java and other
languages (typically C or C++) by employing JNI, network links, or the Java
Communications API [Kreimeier 1999]. This opens up Java to code which may be
better optimized for the underlying hardware/OS, but affects portability.
· Java as a scripting engine. This is a variant of the dirty Java idea, where the
majority of the application is implemented in another language. For example, C++
may be used to write the graphics rendering engine, image loaders, and the user
interface for joysticks. Java is utilised for tasks that are hardware independent