Tabnine Logo
PApplet.arrayCopy
Code IndexAdd Tabnine to your IDE (free)

How to use
arrayCopy
method
in
processing.core.PApplet

Best Java code snippets using processing.core.PApplet.arrayCopy (Showing top 20 results out of 315)

origin: org.processing/core

void expandVertices(int n) {
 float temp[] = new float[3 * n];
 PApplet.arrayCopy(vertices, 0, temp, 0, 3 * vertexCount);
 vertices = temp;
}
origin: org.processing/core

void expandTexCoords(int n) {
 float temp[] = new float[2 * n];
 PApplet.arrayCopy(texcoords, 0, temp, 0, 2 * vertexCount);
 texcoords = temp;
}
origin: org.processing/core

void expandStrokeWeights(int n) {
 float temp[] = new float[n];
 PApplet.arrayCopy(strokeWeights, 0, temp, 0, vertexCount);
 strokeWeights = temp;
}
origin: org.processing/core

void expandSpecular(int n) {
 int temp[] = new int[n];
 PApplet.arrayCopy(specular, 0, temp, 0, vertexCount);
 specular = temp;
}
origin: org.processing/core

void expandEmissive(int n) {
 int temp[] = new int[n];
 PApplet.arrayCopy(emissive, 0, temp, 0, vertexCount);
 emissive = temp;
}
origin: org.processing/core

void trimNormals() {
 float temp[] = new float[3 * vertexCount];
 PApplet.arrayCopy(normals, 0, temp, 0, 3 * vertexCount);
 normals = temp;
}
origin: org.processing/core

void trimSpecular() {
 int temp[] = new int[vertexCount];
 PApplet.arrayCopy(specular, 0, temp, 0, vertexCount);
 specular = temp;
}
origin: org.processing/core

void expandAmbient(int n) {
 int temp[] = new int[n];
 PApplet.arrayCopy(ambient, 0, temp, 0, vertexCount);
 ambient = temp;
}
origin: org.processing/core

void trimColors() {
 int temp[] = new int[vertexCount];
 PApplet.arrayCopy(colors, 0, temp, 0, vertexCount);
 colors = temp;
}
origin: org.processing/core

void trimStrokeColors() {
 int temp[] = new int[vertexCount];
 PApplet.arrayCopy(strokeColors, 0, temp, 0, vertexCount);
 strokeColors = temp;
}
origin: org.processing/core

void expandRawIndices(int n) {
 int temp[] = new int[n];
 PApplet.arrayCopy(rawIndices, 0, temp, 0, rawSize);
 rawIndices = temp;
}
origin: org.processing/core

void expandFloatAttribute(VertexAttribute attrib, int n) {
 float[] array = fpolyAttribs.get(attrib.name);
 float temp[] = new float[attrib.tessSize * n];
 PApplet.arrayCopy(array, 0, temp, 0, attrib.tessSize * polyVertexCount);
 fpolyAttribs.put(attrib.name, temp);
 polyAttribBuffers.put(attrib.name, PGL.allocateFloatBuffer(temp));
}
origin: org.processing/core

void expandBoolAttribute(VertexAttribute attrib, int n) {
 byte[] array = bpolyAttribs.get(attrib.name);
 byte temp[] = new byte[attrib.tessSize * n];
 PApplet.arrayCopy(array, 0, temp, 0, attrib.tessSize * polyVertexCount);
 bpolyAttribs.put(attrib.name, temp);
 polyAttribBuffers.put(attrib.name, PGL.allocateByteBuffer(temp));
}
origin: org.processing/core

void expandPolyIndices(int n) {
 short temp[] = new short[n];
 PApplet.arrayCopy(polyIndices, 0, temp, 0, polyIndexCount);
 polyIndices = temp;
 polyIndicesBuffer = PGL.allocateShortBuffer(polyIndices);
}
origin: org.processing/core

void expandPointIndices(int n) {
 short temp[] = new short[n];
 PApplet.arrayCopy(pointIndices, 0, temp, 0, pointIndexCount);
 pointIndices = temp;
 pointIndicesBuffer = PGL.allocateShortBuffer(pointIndices);
}
origin: org.processing/core

void trimPolyColors() {
 int temp[] = new int[polyVertexCount];
 PApplet.arrayCopy(polyColors, 0, temp, 0, polyVertexCount);
 polyColors = temp;
 polyColorsBuffer = PGL.allocateIntBuffer(polyColors);
}
origin: org.processing/core

void trimPolySpecular() {
 int temp[] = new int[polyVertexCount];
 PApplet.arrayCopy(polySpecular, 0, temp, 0, polyVertexCount);
 polySpecular = temp;
 polySpecularBuffer = PGL.allocateIntBuffer(polySpecular);
}
origin: org.processing/core

void trimLineColors() {
 int temp[] = new int[lineVertexCount];
 PApplet.arrayCopy(lineColors, 0, temp, 0, lineVertexCount);
 lineColors = temp;
 lineColorsBuffer = PGL.allocateIntBuffer(lineColors);
}
origin: org.processing/core

void trimPolyVertices() {
 float temp[] = new float[4 * polyVertexCount];
 PApplet.arrayCopy(polyVertices, 0, temp, 0, 4 * polyVertexCount);
 polyVertices = temp;
 polyVerticesBuffer = PGL.allocateFloatBuffer(polyVertices);
}
origin: org.processing/core

void trimLineDirections() {
 float temp[] = new float[4 * lineVertexCount];
 PApplet.arrayCopy(lineDirections, 0, temp, 0, 4 * lineVertexCount);
 lineDirections = temp;
 lineDirectionsBuffer = PGL.allocateFloatBuffer(lineDirections);
}
processing.corePAppletarrayCopy

Javadoc

Calls System.arraycopy(), included here so that we can avoid people needing to learn about the System object before they can just copy an array.

Popular methods of PApplet

  • constrain
  • createGraphics
    Create an offscreen graphics surface for drawing, in this case for a renderer that writes to a file
  • loadStrings
    ( begin auto-generated from loadStrings.xml ) Reads the contents of a file or url and creates a Stri
  • saveStrings
    ( begin auto-generated from saveStrings.xml ) Writes an array of strings to a file, one line per str
  • abs
  • createImage
    ( begin auto-generated from createImage.xml ) Creates a new PImage (the datatype for storing images)
  • createShape
  • createWriter
    ( begin auto-generated from createWriter.xml ) Creates a new file in the sketch folder, and a PrintW
  • loadImage
  • main
    main() method for running this class from the command line. Usage: PApplet [options] [s
  • max
  • parseInt
  • max,
  • parseInt,
  • random,
  • round,
  • split,
  • sqrt,
  • unhex,
  • ceil,
  • checkExtension

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • setScale (BigDecimal)
  • findViewById (Activity)
  • Menu (java.awt)
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now