shaderattributeretained.java

来自「JAVA3D矩陈的相关类」· Java 代码 · 共 53 行

JAVA
53
字号
/* * $RCSfile: ShaderAttributeRetained.java,v $ * * Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved. * * Use is subject to license terms. * * $Revision: 1.6 $ * $Date: 2007/03/30 18:40:14 $ * $State: Exp $ */package javax.media.j3d;import javax.vecmath.*;/** * The ShaderAttributeRetained object encapsulates a uniform attribute for a * shader programs. */abstract class ShaderAttributeRetained extends NodeComponentRetained {    /**     * Name of the shader attribute (immutable)     */    String attrName;    /**     * Package scope constructor     */    ShaderAttributeRetained() {    }    void initializeAttrName(String attrName) {	this.attrName = attrName;    }    /**     * Retrieves the name of this shader attribute.     *     * @return the name of this shader attribute     */    String getAttributeName() {	return attrName;    }    void initMirrorObject() {	((ShaderAttributeObjectRetained)mirror).initializeAttrName(this.attrName);    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?