added loading texture from image
This commit is contained in:
parent
4a16dbfc9f
commit
4ab459d515
|
@ -48,6 +48,11 @@ public class GLWindow implements IWindow {
|
||||||
System.out.println(GL11.glGetInteger(GL_MAX_TEXTURE_SIZE));
|
System.out.println(GL11.glGetInteger(GL_MAX_TEXTURE_SIZE));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ITexture loadTexture(Image image) {
|
||||||
|
return textureAtlas.addTexture(image);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ITexture loadTexture(String path) {
|
public ITexture loadTexture(String path) {
|
||||||
var img = engine.loadImage(path);
|
var img = engine.loadImage(path);
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.danitheskunk.skunkworks;
|
package com.danitheskunk.skunkworks;
|
||||||
|
|
||||||
public interface IWindow {
|
public interface IWindow {
|
||||||
|
ITexture loadTexture(Image image);
|
||||||
ITexture loadTexture(String path);
|
ITexture loadTexture(String path);
|
||||||
void renderFinish(IRenderContext context);
|
void renderFinish(IRenderContext context);
|
||||||
IRenderContext renderStart();
|
IRenderContext renderStart();
|
||||||
|
|
Loading…
Reference in New Issue