Java ResourceLoader.getResourceAsStream local resource
- by Dajgoro Labinac
Before using lwjgl, i used the Graphic method, and there i displayed imageicons, and i had the picture file located in the resources.
I used: ImageIcon tcard = new ImageIcon(this.getClass().getResource("RCA.png"));
to load the image.
Now when i load textures in lwjgl, i have to use absolute paths to locate the file:
tcard =…