package ru.dbotthepony.kstarbound.client.freetype.struct;

import com.sun.jna.Structure;
import ru.dbotthepony.kommons.vector.Vector2i;

@Structure.FieldOrder({"x", "y"})
public class FT_Vector extends Structure {
	public FT_Pos  x;
	public FT_Pos  y;

	public static class Ref extends FT_Vector implements Structure.ByReference {}

	public Vector2i toVector() {
		return new Vector2i(x.intValue(), y.intValue());
	}
}
