public WireFrustum(Vector3f[] points){ if (points != null) setBuffer(Type.Position, 3, BufferUtils.createFloatBuffer(points)); setBuffer(Type.Index, 2, new short[]{ 0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7, } ); setMode(Mode.Lines); }
public WireFrustum(Vector3f[] points){ if (points != null) setBuffer(Type.Position, 3, BufferUtils.createFloatBuffer(points)); setBuffer(Type.Index, 2, new short[]{ 0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7, } ); getBuffer(Type.Index).setUsage(Usage.Static); setMode(Mode.Lines); }