MCPcopy Index your code
hub / github.com/processing/processing / loadAttributes

Method loadAttributes

core/src/processing/opengl/PShader.java:1120–1143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1118
1119
1120 protected void loadAttributes() {
1121 if (loadedAttributes) return;
1122
1123 vertexLoc = getAttributeLoc("vertex");
1124 if (vertexLoc == -1) vertexLoc = getAttributeLoc("position");
1125
1126 colorLoc = getAttributeLoc("color");
1127 texCoordLoc = getAttributeLoc("texCoord");
1128 normalLoc = getAttributeLoc("normal");
1129
1130 ambientLoc = getAttributeLoc("ambient");
1131 specularLoc = getAttributeLoc("specular");
1132 emissiveLoc = getAttributeLoc("emissive");
1133 shininessLoc = getAttributeLoc("shininess");
1134
1135 directionLoc = getAttributeLoc("direction");
1136
1137 offsetLoc = getAttributeLoc("offset");
1138
1139 directionLoc = getAttributeLoc("direction");
1140 offsetLoc = getAttributeLoc("offset");
1141
1142 loadedAttributes = true;
1143 }
1144
1145
1146 protected void loadUniforms() {

Callers 4

bindTypedMethod · 0.95
getPolyShaderMethod · 0.95
getLineShaderMethod · 0.95
getPointShaderMethod · 0.95

Calls 1

getAttributeLocMethod · 0.95

Tested by

no test coverage detected