mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 13:49:18 +01:00
Removed some commented-out code
This commit is contained in:
@@ -2379,107 +2379,6 @@ public class PShapeOpenGL extends PShape {
|
||||
|
||||
|
||||
protected void initModified() {
|
||||
/*
|
||||
if (hasPolys) {
|
||||
modifiedPolyVertices = true;
|
||||
modifiedPolyColors = true;
|
||||
modifiedPolyNormals = true;
|
||||
modifiedPolyTexCoords = true;
|
||||
modifiedPolyAmbient = true;
|
||||
modifiedPolySpecular = true;
|
||||
modifiedPolyEmissive = true;
|
||||
modifiedPolyShininess = true;
|
||||
firstModifiedPolyVertex = 0;
|
||||
lastModifiedPolyVertex = tessGeo.polyVertexCount - 1;
|
||||
firstModifiedPolyColor = 0;
|
||||
lastModifiedPolyColor = tessGeo.polyVertexCount - 1;
|
||||
firstModifiedPolyNormal = 0;
|
||||
lastModifiedPolyNormal = tessGeo.polyVertexCount - 1;
|
||||
firstModifiedPolyTexcoord = 0;
|
||||
lastModifiedPolyTexcoord = tessGeo.polyVertexCount - 1;
|
||||
firstModifiedPolyAmbient = 0;
|
||||
lastModifiedPolyAmbient = tessGeo.polyVertexCount - 1;
|
||||
firstModifiedPolySpecular = 0;
|
||||
lastModifiedPolySpecular = tessGeo.polyVertexCount - 1;
|
||||
firstModifiedPolyEmissive = 0;
|
||||
lastModifiedPolyEmissive = tessGeo.polyVertexCount - 1;
|
||||
firstModifiedPolyShininess = 0;
|
||||
lastModifiedPolyShininess = tessGeo.polyVertexCount - 1;
|
||||
} else {
|
||||
modifiedPolyVertices = false;
|
||||
modifiedPolyColors = false;
|
||||
modifiedPolyNormals = false;
|
||||
modifiedPolyTexCoords = false;
|
||||
modifiedPolyAmbient = false;
|
||||
modifiedPolySpecular = false;
|
||||
modifiedPolyEmissive = false;
|
||||
modifiedPolyShininess = false;
|
||||
firstModifiedPolyVertex = PConstants.MAX_INT;
|
||||
lastModifiedPolyVertex = PConstants.MIN_INT;
|
||||
firstModifiedPolyColor = PConstants.MAX_INT;
|
||||
lastModifiedPolyColor = PConstants.MIN_INT;
|
||||
firstModifiedPolyNormal = PConstants.MAX_INT;
|
||||
lastModifiedPolyNormal = PConstants.MIN_INT;
|
||||
firstModifiedPolyTexcoord = PConstants.MAX_INT;
|
||||
lastModifiedPolyTexcoord = PConstants.MIN_INT;
|
||||
firstModifiedPolyAmbient = PConstants.MAX_INT;
|
||||
lastModifiedPolyAmbient = PConstants.MIN_INT;
|
||||
firstModifiedPolySpecular = PConstants.MAX_INT;
|
||||
lastModifiedPolySpecular = PConstants.MIN_INT;
|
||||
firstModifiedPolyEmissive = PConstants.MAX_INT;
|
||||
lastModifiedPolyEmissive = PConstants.MIN_INT;
|
||||
firstModifiedPolyShininess = PConstants.MAX_INT;
|
||||
lastModifiedPolyShininess = PConstants.MIN_INT;
|
||||
}
|
||||
|
||||
if (hasLines) {
|
||||
modifiedLineVertices = true;
|
||||
modifiedLineColors = true;
|
||||
modifiedLineAttributes = true;
|
||||
firstModifiedLineVertex = 0;
|
||||
lastModifiedLineVertex = tessGeo.lineVertexCount - 1;
|
||||
firstModifiedLineColor = 0;
|
||||
lastModifiedLineColor = tessGeo.lineVertexCount - 1;
|
||||
firstModifiedLineAttribute = 0;
|
||||
lastModifiedLineAttribute = tessGeo.lineVertexCount - 1;
|
||||
} else {
|
||||
modifiedLineVertices = false;
|
||||
modifiedLineColors = false;
|
||||
modifiedLineAttributes = false;
|
||||
firstModifiedLineVertex = PConstants.MAX_INT;
|
||||
lastModifiedLineVertex = PConstants.MIN_INT;
|
||||
firstModifiedLineColor = PConstants.MAX_INT;
|
||||
lastModifiedLineColor = PConstants.MIN_INT;
|
||||
firstModifiedLineAttribute = PConstants.MAX_INT;
|
||||
lastModifiedLineAttribute = PConstants.MIN_INT;
|
||||
}
|
||||
|
||||
if (hasLines) {
|
||||
modifiedPointVertices = true;
|
||||
modifiedPointColors = true;
|
||||
modifiedPointAttributes = true;
|
||||
firstModifiedPointVertex = 0;
|
||||
lastModifiedPointVertex = tessGeo.pointVertexCount - 1;
|
||||
firstModifiedPointColor = 0;
|
||||
lastModifiedPointColor = tessGeo.pointVertexCount - 1;
|
||||
firstModifiedPointAttribute = 0;
|
||||
lastModifiedPointAttribute = tessGeo.pointVertexCount - 1;
|
||||
} else {
|
||||
modifiedPointVertices = false;
|
||||
modifiedPointColors = false;
|
||||
modifiedPointAttributes = false;
|
||||
firstModifiedPointVertex = PConstants.MAX_INT;
|
||||
lastModifiedPointVertex = PConstants.MIN_INT;
|
||||
firstModifiedPointColor = PConstants.MAX_INT;
|
||||
lastModifiedPointColor = PConstants.MIN_INT;
|
||||
firstModifiedPointAttribute = PConstants.MAX_INT;
|
||||
lastModifiedPointAttribute = PConstants.MIN_INT;
|
||||
}
|
||||
|
||||
modified = hasPolys || hasLines || hasPoints;
|
||||
*/
|
||||
|
||||
|
||||
modified = false;
|
||||
|
||||
modifiedPolyVertices = false;
|
||||
|
||||
Reference in New Issue
Block a user