public void buildGraph() { if (!(node instanceof TextureCubeMap)) { for (int i = 0; i < imageComponents.length; i++) { ((Texture) node) .setImage(i, (ImageComponent) control.getSymbolTable().getJ3dNode(imageComponents[i])); } } super.buildGraph(); // Must be last call in method }
/** @param bsas */ public DummyTextureSource() { im = new BufferedImage(1, 1, BufferedImage.TYPE_INT_RGB); tex = new Texture2D(Texture.BASE_LEVEL, Texture.RGB, im.getWidth(), im.getHeight()); tex.setImage(0, new ImageComponent2D(ImageComponent.FORMAT_RGB, im)); }