Deprecated
as a consequence of Applet being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Canvas | display_parent
The Canvas where the LWJGL Display is added |
| pack-priv Game | game
The Game instance |
| pack-priv Thread | gameThread
Thread which runs the main game loop |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | destroy()
Overrides java. |
| public void | init()
Overrides java. |
| public void | start()
Overrides java. |
| public void | startLWJGL()
Once the Canvas is created its add notify method will call this method to start the LWJGL Display and game loop in another thread. |
| public void | stop()
Overrides java. |
| private void |
| display_parent | back to summary |
|---|---|
| pack-priv Canvas display_parent The Canvas where the LWJGL Display is added | |
| game | back to summary |
|---|---|
| pack-priv Game game The Game instance | |
| gameThread | back to summary |
|---|---|
| pack-priv Thread gameThread Thread which runs the main game loop | |
| GameApplet | back to summary |
|---|---|
| public GameApplet() | |
| destroy | back to summary |
|---|---|
| public void destroy() Overrides java. Applet Destroy method will remove the canvas, before canvas is destroyed it will notify stopLWJGL() to stop main game loop and to destroy the Display | |
| init | back to summary |
|---|---|
| public void init() Overrides java. initialise applet by adding a canvas to it, this canvas will start the LWJGL Display and game loop in another thread. It will also stop the game loop and destroy the display on canvas removal when applet is destroyed. | |
| start | back to summary |
|---|---|
| public void start() Overrides java. Doc from java. Called by the browser or applet viewer to inform this applet that it
should start its execution. It is called after the
A subclass of Note some methods, such as
The implementation of this method provided by the | |
| startLWJGL | back to summary |
|---|---|
| public void startLWJGL() Once the Canvas is created its add notify method will call this method to start the LWJGL Display and game loop in another thread. | |
| stop | back to summary |
|---|---|
| public void stop() Overrides java. Doc from java. Called by the browser or applet viewer to inform this applet that it should stop its execution. It is called when the Web page that contains this applet has been replaced by another page, and also just before the applet is to be destroyed.
A subclass of
The implementation of this method provided by the | |
| stopLWJGL | back to summary |
|---|---|
| private void stopLWJGL() Tell game loop to stop running, after which the LWJGL Display will be destoryed. The main thread will wait for the Display.destroy() to complete | |