New icon
parent
5044c584f9
commit
5e47c8e797
|
@ -77,8 +77,6 @@ public class Litecraft extends Game{
|
||||||
data.entities.add(b);
|
data.entities.add(b);
|
||||||
}
|
}
|
||||||
|
|
||||||
Window.setIcon("/textures/grass.png");
|
|
||||||
|
|
||||||
|
|
||||||
FontType font = new FontType(Loader.loadFontAtlas("candara.png"), "candara.fnt");
|
FontType font = new FontType(Loader.loadFontAtlas("candara.png"), "candara.fnt");
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,7 @@ public class Window {
|
||||||
Window.title = title;
|
Window.title = title;
|
||||||
fpsCap = fps;
|
fpsCap = fps;
|
||||||
create();
|
create();
|
||||||
|
setIcon();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void create() {
|
public static void create() {
|
||||||
|
@ -174,8 +175,8 @@ public class Window {
|
||||||
backgroundColour = new Vector3f(r,g,b);
|
backgroundColour = new Vector3f(r,g,b);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setIcon(String path) {
|
private static void setIcon() {
|
||||||
Image icon = Image.createImage(path);
|
Image icon = Image.createImage("/icon.png");
|
||||||
GLFWImage iconImage = GLFWImage.malloc();
|
GLFWImage iconImage = GLFWImage.malloc();
|
||||||
iconBuffer = GLFWImage.malloc(1);
|
iconBuffer = GLFWImage.malloc(1);
|
||||||
iconImage.set(icon.getWidth(), icon.getHeight(), icon.getImage());
|
iconImage.set(icon.getWidth(), icon.getHeight(), icon.getImage());
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
Loading…
Reference in New Issue