24 lines
438 B
Java
24 lines
438 B
Java
package com.danitheskunk.skunkworks;
|
|
|
|
public class GLTexture implements ITexture {
|
|
private Recti texArea;
|
|
Image img; //for re-blitting onto texture atlas
|
|
|
|
GLTexture(Recti texArea, Image img) {
|
|
this.texArea = texArea;
|
|
this.img = img;
|
|
}
|
|
|
|
//setters
|
|
@Override
|
|
public Vec2i getSize() { return this.img.getSize(); }
|
|
void setTexArea(Recti texArea) {
|
|
this.texArea = texArea;
|
|
}
|
|
|
|
|
|
public Recti getTexArea() {
|
|
return texArea;
|
|
}
|
|
}
|