MCPcopy Index your code
hub / github.com/benfry/processing4 / loadShapeImpl

Method loadShapeImpl

core/src/processing/opengl/PGraphics2D.java:244–251  ·  view source on GitHub ↗
(PGraphics pg,
                                        String filename, String extension)

Source from the content-addressed store, hash-verified

242
243
244 static protected PShape loadShapeImpl(PGraphics pg,
245 String filename, String extension) {
246 if (extension.equals("svg") || extension.equals("svgz")) {
247 PShapeSVG svg = new PShapeSVG(pg.parent.loadXML(filename));
248 return PShapeOpenGL.createShape((PGraphicsOpenGL) pg, svg);
249 }
250 return null;
251 }
252
253
254 //////////////////////////////////////////////////////////////

Callers 1

loadShapeMethod · 0.95

Calls 3

createShapeMethod · 0.95
loadXMLMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected