pull/7/head
Caroline Bell 2020-02-24 13:41:50 -08:00
parent 5044c584f9
commit 5e47c8e797
3 changed files with 3 additions and 4 deletions

View File

@ -77,8 +77,6 @@ public class Litecraft extends Game{
data.entities.add(b);
}
Window.setIcon("/textures/grass.png");
FontType font = new FontType(Loader.loadFontAtlas("candara.png"), "candara.fnt");

View File

@ -39,6 +39,7 @@ public class Window {
Window.title = title;
fpsCap = fps;
create();
setIcon();
}
public static void create() {
@ -174,8 +175,8 @@ public class Window {
backgroundColour = new Vector3f(r,g,b);
}
public static void setIcon(String path) {
Image icon = Image.createImage(path);
private static void setIcon() {
Image icon = Image.createImage("/icon.png");
GLFWImage iconImage = GLFWImage.malloc();
iconBuffer = GLFWImage.malloc(1);
iconImage.set(icon.getWidth(), icon.getHeight(), icon.getImage());

BIN
src/main/resources/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB