Move the Context creation to the App engine starting point | change GLFW Window title to project name

This commit is contained in:
2021-03-12 15:05:04 +01:00
parent cafad00389
commit 73de1f0985
12 changed files with 187 additions and 91 deletions

View File

@@ -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);
}