New icon
parent
5044c584f9
commit
5e47c8e797
|
@ -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");
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
Loading…
Reference in New Issue