mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Solved some inconsistency in the multitexturing API
This commit is contained in:
@@ -7860,9 +7860,9 @@ public class PApplet extends Applet
|
||||
* formatted vertex information.
|
||||
* @param v vertex parameters, as a float array of length VERTEX_FIELD_COUNT
|
||||
*/
|
||||
public void vertex(float[] v) {
|
||||
if (recorder != null) recorder.vertex(v);
|
||||
g.vertex(v);
|
||||
public void vertexFields(float[] v) {
|
||||
if (recorder != null) recorder.vertexFields(v);
|
||||
g.vertexFields(v);
|
||||
}
|
||||
|
||||
|
||||
@@ -10225,15 +10225,9 @@ public class PApplet extends Applet
|
||||
}
|
||||
|
||||
|
||||
public void vertex(float x, float y, float... uv) {
|
||||
if (recorder != null) recorder.vertex(x, y, uv);
|
||||
g.vertex(x, y, uv);
|
||||
}
|
||||
|
||||
|
||||
public void vertex(float x, float y, float z, float... uv) {
|
||||
if (recorder != null) recorder.vertex(x, y, z, uv);
|
||||
g.vertex(x, y, z, uv);
|
||||
public void vertex(float... values) {
|
||||
if (recorder != null) recorder.vertex(values);
|
||||
g.vertex(values);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1166,14 +1166,14 @@ public class PGraphics extends PImage implements PConstants {
|
||||
* formatted vertex information.
|
||||
* @param v vertex parameters, as a float array of length VERTEX_FIELD_COUNT
|
||||
*/
|
||||
public void vertex(float[] v) {
|
||||
public void vertexFields(float[] v) {
|
||||
vertexCheck();
|
||||
curveVertexCount = 0;
|
||||
float[] vertex = vertices[vertexCount];
|
||||
System.arraycopy(v, 0, vertex, 0, VERTEX_FIELD_COUNT);
|
||||
vertexCount++;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void vertex(float x, float y, float u, float v) {
|
||||
vertexTexture(u, v);
|
||||
@@ -6007,13 +6007,7 @@ public class PGraphics extends PImage implements PConstants {
|
||||
showMissingWarning("texture");
|
||||
}
|
||||
|
||||
|
||||
public void vertex(float x, float y, float... uv) {
|
||||
public void vertex(float... values) {
|
||||
showMissingWarning("vertex");
|
||||
}
|
||||
|
||||
|
||||
public void vertex(float x, float y, float z, float... uv) {
|
||||
showMissingWarning("vertex");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user