Skip to main content

Point2Buffer

class Point2Buffer

A Point2Buffer is a NativeFloatBuffer adapter and Point2 array that instead of being allocated in Java's heap memory is allocated in native memory, so if you need to use more memory than the available heap memory, use Point2Buffer and you will be able to use 100% of device ram memory.


public class Point2Buffer

— Constructors (1) —

ConstructorDescription
Point2Buffer()Creates a new Point2Buffer.

— Methods (10) —

NameDescription
Point2 get(int idx)Returns the current value of the two axes of the position Point2Buffer defined to be "idx" argument.
int getX(int idx)Returns the current value of the X axis of the position Point2Buffer defined to be "idx" argument.
int getY(int idx)Returns the current value of the Y axis of the position Point2Buffer defined to be "idx" argument.
void put(Point2 point2)Places a value defined to be "point2" argument sequentially in the Point2Buffer.
void put(int x, int y)Places the X axis value defined to be "x" argument, and Y axis to be "y" argument sequentially in the Point2.
int capacity()Returns the maximum Point2Buffer capacity value.
Point2[] array()Returns an array of current Point2Buffer values.
void position(int idx)Returns the current value of the two axes of the position Point2Buffer defined to be "idx" argument.
boolean isVboEnabled()Returns true if the vbo of Point2Buffer is enabled, false if not.
void setVboEnabled(boolean value)Defines if Point2Buffer's vbo will be enabled or disabled to be "value" argument.