Пример #1
0
 /**
  * Set the position and size of the rectangle.
  *
  * @param gl the OpenGL interface
  * @param rect the rectangle
  */
 public void setRect(@Nonnull GL2 gl, @Nonnull Rect rect) {
   float[] positions = createPositions(rect);
   vertexArrayObject.updateBuffer(gl, positionsBuffer, positions);
 }