Move the Context creation to the App engine starting point | change GLFW Window title to project name
This commit is contained in:
@@ -6,14 +6,19 @@ import com.bartlomiejpluta.base.api.game.gui.base.GUI;
|
||||
import com.bartlomiejpluta.base.api.game.image.Image;
|
||||
import com.bartlomiejpluta.base.api.game.runner.GameRunner;
|
||||
import com.bartlomiejpluta.base.api.game.screen.Screen;
|
||||
import com.bartlomiejpluta.base.api.internal.gc.Disposable;
|
||||
import com.bartlomiejpluta.base.api.internal.logic.Updatable;
|
||||
import com.bartlomiejpluta.base.api.internal.render.Renderable;
|
||||
|
||||
public interface Context {
|
||||
public interface Context extends Updatable, Renderable, Disposable {
|
||||
GameRunner getGameRunner();
|
||||
|
||||
Screen getScreen();
|
||||
|
||||
Camera getCamera();
|
||||
|
||||
String getProjectName();
|
||||
|
||||
void openMap(String mapUid);
|
||||
|
||||
Entity createEntity(String entitySetUid);
|
||||
@@ -21,4 +26,8 @@ public interface Context {
|
||||
Image getImage(String imageUid);
|
||||
|
||||
GUI newGUI();
|
||||
|
||||
void init(Screen screen, Camera camera);
|
||||
|
||||
void input(Screen screen);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user