Package javax.media.j3d

Examples of javax.media.j3d.TextureUnitState


/*     */   public TextureUnitStateState(SymbolTableData symbol, Controller control)
/*     */   {
/*  61 */     super(symbol, control);
/*     */
/*  63 */     if (this.node != null) {
/*  64 */       TextureUnitState attr = (TextureUnitState)this.node;
/*  65 */       this.texCoordGeneration = control.getSymbolTable().addReference(attr.getTexCoordGeneration());
/*  66 */       this.texture = control.getSymbolTable().addReference(attr.getTexture());
/*  67 */       this.textureAttributes = control.getSymbolTable().addReference(attr.getTextureAttributes());
/*     */     }
/*     */   }
View Full Code Here


/*  75 */     out.writeInt(this.textureAttributes);
/*     */   }
/*     */
/*     */   public void readObject(DataInput in) throws IOException {
/*  79 */     super.readObject(in);
/*  80 */     TextureUnitState attr = (TextureUnitState)this.node;
/*  81 */     this.texCoordGeneration = in.readInt();
/*  82 */     this.texture = in.readInt();
/*  83 */     this.textureAttributes = in.readInt();
/*     */   }
View Full Code Here

/*  88 */     this.control.getSymbolTable().incNodeComponentRefCount(this.texture);
/*  89 */     this.control.getSymbolTable().incNodeComponentRefCount(this.textureAttributes);
/*     */   }
/*     */
/*     */   public void buildGraph() {
/*  93 */     TextureUnitState attr = (TextureUnitState)this.node;
/*  94 */     attr.setTexCoordGeneration((TexCoordGeneration)this.control.getSymbolTable().getJ3dNode(this.texCoordGeneration));
/*  95 */     attr.setTexture((Texture)this.control.getSymbolTable().getJ3dNode(this.texture));
/*  96 */     attr.setTextureAttributes((TextureAttributes)this.control.getSymbolTable().getJ3dNode(this.textureAttributes));
/*  97 */     super.buildGraph();
/*     */   }
View Full Code Here

/*  96 */     attr.setTextureAttributes((TextureAttributes)this.control.getSymbolTable().getJ3dNode(this.textureAttributes));
/*  97 */     super.buildGraph();
/*     */   }
/*     */
/*     */   protected SceneGraphObject createNode() {
/* 101 */     return new TextureUnitState();
/*     */   }
View Full Code Here

TOP

Related Classes of javax.media.j3d.TextureUnitState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.