protected void set(PointAttributesRetained pr) { super.set(pr); pointSize = pr.pointSize; pointAntialiasing = pr.pointAntialiasing; }
protected void set(LineAttributesRetained lr) { super.set(lr); lineWidth = lr.lineWidth; linePattern = lr.linePattern; linePatternScaleFactor = lr.linePatternScaleFactor; linePatternMask = lr.linePatternMask; lineAntialiasing = lr.lineAntialiasing; }
protected void set(PolygonAttributesRetained pr) { super.set(pr); cullFace = pr.cullFace; backFaceNormalFlip = pr.backFaceNormalFlip; polygonMode = pr.polygonMode; polygonOffset = pr.polygonOffset; polygonOffsetFactor = pr.polygonOffsetFactor; }
protected void set(TransparencyAttributesRetained transp) { super.set(transp); transparencyMode = transp.transparencyMode; transparency = transp.transparency; srcBlendFunction = transp.srcBlendFunction; dstBlendFunction = transp.dstBlendFunction; }
protected void set(RenderingAttributesRetained ra) { super.set(ra); depthBufferEnable = ra.depthBufferEnable; depthBufferWriteEnable = ra.depthBufferWriteEnable; alphaTestValue = ra.alphaTestValue; alphaTestFunction = ra.alphaTestFunction; depthTestFunction = ra.depthTestFunction; visible = ra.visible; ignoreVertexColors = ra.ignoreVertexColors; rasterOpEnable = ra.rasterOpEnable; rasterOp = ra.rasterOp; stencilEnable = ra.stencilEnable; stencilFailOp = ra.stencilFailOp; stencilZFailOp = ra.stencilZFailOp; stencilZPassOp = ra.stencilZPassOp; stencilFunction = ra.stencilFunction; stencilReferenceValue = ra.stencilReferenceValue; stencilCompareMask = ra.stencilCompareMask; stencilWriteMask = ra.stencilWriteMask; }
protected void set(ColoringAttributesRetained cr) { super.set(cr); color.set(cr.color); shadeModel = cr.shadeModel; }
protected void set(TexCoordGenerationRetained tr) { super.set(tr); genMode = tr.genMode; format = tr.format; enable = tr.enable; planeS.set(tr.planeS); planeT.set(tr.planeT); planeR.set(tr.planeR); }
protected void set(TextureAttributesRetained tr) { super.set(tr); transform.set(tr.transform); textureBlendColor.set(tr.textureBlendColor);
protected void set(MaterialRetained mat) { super.set(mat); // duplicate any referenced data ambientColor.set(mat.ambientColor); emissiveColor.set(mat.emissiveColor); diffuseColor.set(mat.diffuseColor); specularColor.set(mat.specularColor); shininess = mat.shininess; lightingEnable = mat.lightingEnable; colorTarget = mat.colorTarget; }
/** * set the texture unit state according to the specified texture * unit state */ protected void set(TextureUnitStateRetained tr) { super.set(tr); this.texture = tr.texture; if (tr.texAttrs == null) { this.texAttrs = null; } else { if (this.texAttrs == null) { this.texAttrs = (TextureAttributesRetained)tr.texAttrs.clone(); } else { this.texAttrs.set(tr.texAttrs); } } if (tr.texGen == null) { this.texGen = null; } else { if (this.texGen == null) { this.texGen = (TexCoordGenerationRetained)tr.texGen.clone(); } else { this.texGen.set(tr.texGen); } } }