forked from benyap/java-engine-lwjgl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
halotroop2288
committed
Sep 17, 2019
1 parent
dfdd63e
commit 49b17dd
Showing
143 changed files
with
6,225 additions
and
8,534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,41 @@ | ||
package com.bwyap.engine; | ||
|
||
/** | ||
* Specifies the methods that an engine requires. | ||
* @author bwyap | ||
* | ||
*/ | ||
public interface EngineInterface { | ||
|
||
/** | ||
* Run the game engine loop. | ||
*/ | ||
/** Specifies the methods that an engine requires. | ||
* | ||
* @author bwyap */ | ||
public interface EngineInterface | ||
{ | ||
/** Run the game engine loop. */ | ||
public void run(); | ||
|
||
/** | ||
* Initialise the engine and prepare resources for rendering | ||
*/ | ||
|
||
/** Initialise the engine and prepare resources for rendering */ | ||
public void init(); | ||
|
||
/** | ||
* Get the current system time | ||
* @return | ||
*/ | ||
|
||
/** Get the current system time | ||
* | ||
* @return */ | ||
public float getCurrentTime(); | ||
|
||
/** | ||
* Update the application | ||
* @param timestep | ||
*/ | ||
|
||
/** Update the application | ||
* | ||
* @param timestep */ | ||
public void update(float timestep); | ||
|
||
/** | ||
* Render the graphics of the application | ||
* @param timestep | ||
*/ | ||
|
||
/** Render the graphics of the application | ||
* | ||
* @param timestep */ | ||
public void render(float timestep); | ||
|
||
/** | ||
* Frees resources that are no longer needed. | ||
*/ | ||
|
||
/** Frees resources that are no longer needed. */ | ||
public void cleanup(); | ||
|
||
/** | ||
* Get the last measured FPS of the engine. | ||
* @return | ||
*/ | ||
|
||
/** Get the last measured FPS of the engine. | ||
* | ||
* @return */ | ||
public float getFPS(); | ||
|
||
/** | ||
* Gets the target FPS of the game. | ||
* @return | ||
*/ | ||
|
||
/** Gets the target FPS of the game. | ||
* | ||
* @return */ | ||
public int getTargetFPS(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.