FloatingTexture.java 805 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package eu.tankernn.gameEngine.renderEngine.gui.floating;
  2. import org.lwjgl.util.vector.Vector2f;
  3. import org.lwjgl.util.vector.Vector3f;
  4. import eu.tankernn.gameEngine.loader.textures.Texture;
  5. public class FloatingTexture {
  6. private Texture texture;
  7. protected Vector3f position;
  8. protected Vector2f scale;
  9. public FloatingTexture(Texture texture, Vector3f position, Vector2f scale) {
  10. this.texture = texture;
  11. this.position = position;
  12. this.scale = scale;
  13. }
  14. public Texture getTexture() {
  15. return texture;
  16. }
  17. public Vector3f getPosition() {
  18. return position;
  19. }
  20. public Vector3f getScale() {
  21. return new Vector3f(scale.x, scale.y, 1f);
  22. }
  23. public void setPosition(Vector3f position) {
  24. this.position = position;
  25. }
  26. public void setScale(Vector2f scale) {
  27. this.scale = scale;
  28. }
  29. }