MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / copyFrom

Method copyFrom

src/main/java/net/optifine/shaders/Program.java:70–82  ·  view source on GitHub ↗
(Program p)

Source from the content-addressed store, hash-verified

68 }
69
70 public void copyFrom(Program p)
71 {
72 this.id = p.getId();
73 this.alphaState = p.getAlphaState();
74 this.blendState = p.getBlendState();
75 this.renderScale = p.getRenderScale();
76 System.arraycopy(p.getBuffersFlip(), 0, this.buffersFlip, 0, this.buffersFlip.length);
77 this.drawBufSettings = p.getDrawBufSettings();
78 this.drawBuffers = p.getDrawBuffers();
79 this.compositeMipmapSetting = p.getCompositeMipmapSetting();
80 this.countInstances = p.getCountInstances();
81 System.arraycopy(p.getToggleColorTextures(), 0, this.toggleColorTextures, 0, this.toggleColorTextures.length);
82 }
83
84 public int getIndex()
85 {

Callers 1

initMethod · 0.95

Calls 10

getRenderScaleMethod · 0.80
getBuffersFlipMethod · 0.80
getDrawBufSettingsMethod · 0.80
getDrawBuffersMethod · 0.80
getCountInstancesMethod · 0.80
getIdMethod · 0.65
getAlphaStateMethod · 0.45
getBlendStateMethod · 0.45

Tested by

no test coverage detected