WarpPI/src/main/java/org/warp/picalculator/gui/HUD.java

49 lines
991 B
Java

package org.warp.picalculator.gui;
import org.warp.picalculator.gui.screens.Screen;
public abstract class HUD implements GraphicalInterface {
public DisplayManager d;
public boolean created = false;
public boolean initialized = false;
public HUD() {}
public void initialize() throws InterruptedException {
if (!initialized) {
initialized = true;
initialized();
}
}
public void create() throws InterruptedException {
if (!created) {
created = true;
created();
}
}
public abstract void created() throws InterruptedException;
public abstract void initialized() throws InterruptedException;
public abstract void renderBackground();
@Override
public abstract void render();
public abstract void renderTopmostBackground();
@Override
public abstract void renderTopmost();
@Override
public abstract void beforeRender(float dt);
@Override
public boolean mustBeRefreshed() {
return true;
}
}