Package javax.vecmath

Examples of javax.vecmath.Color4f


        (J3dI18N.getString("GeometryDecompressorRetained2")) ;

      vlist.setVertexFormat(vlist.vertexFormat | GeometryArray.COLOR) ;
  }

  if (curColor == null) curColor = new Color4f() ;
  curColor.set(color) ;
    }
View Full Code Here


      // Start a new vertex list for the new color.
      vlist = new GeneralizedVertexList(vlist.vertexFormat,
                FRONTFACE_CCW) ;
  }
  if (curColor == null) curColor = new Color4f() ;
  curColor.set(color) ;
    }
View Full Code Here

      Point3f offset = new Point3f();
      tex.getLodOffset(offset);
      rt.initLodOffset(offset.x, offset.y, offset.z);

      Color4f c = new Color4f();
      tex.getBoundaryColor(c);
      rt.initBoundaryColor(c);

      // No API available to get the current level
      for (int i=tex.maxLevels-1; i>=0; i-- ) {
View Full Code Here

     * @param textureBlendColor the texture blend color used when
     * the  mode is BLEND
     */
    final void setTextureBlendColor(Color4f textureBlendColor) {
  this.textureBlendColor.set(textureBlendColor);
  sendMessage(COLOR_CHANGED, new Color4f(textureBlendColor), null);
    }
View Full Code Here

     * @param b the blue component of the color
     * @param a the alpha component of the color
     */
    final void setTextureBlendColor(float r, float g, float b, float a) {
  this.textureBlendColor.set(r, g, b, a);
  sendMessage(COLOR_CHANGED, new Color4f(r, g, b, a), null);
    }
View Full Code Here

    @Override
    protected Object clone() {
  TextureAttributesRetained tr = (TextureAttributesRetained)super.clone();
  tr.transform = new Transform3D(transform);
  tr.textureBlendColor = new Color4f(textureBlendColor);
  if (textureColorTable != null) {
      tr.textureColorTable = new int[textureColorTable.length];
      System.arraycopy(textureColorTable, 0, tr.textureColorTable, 0,
        textureColorTable.length);
  } else {
View Full Code Here

    // The constructor.
    //
    GeometryDecompressor() {
  curPos = new Point3f() ;
  curNorm = new Vector3f() ;
  curColor = new Color4f() ;
  gctables = new HuffmanTableEntry[3][64] ;

  for (int i = 0 ; i < 64 ; i++) {
      gctables[0][i] = new HuffmanTableEntry() ;
      gctables[1][i] = new HuffmanTableEntry() ;
View Full Code Here

      if (hasColor3)
    color3 = new Color3f(c.x, c.y, c.z) ;

      else if (hasColor4)
    color4 = new Color4f(c) ;
  }
View Full Code Here

  TextureAttributesRetained attr =
      (TextureAttributesRetained) originalNodeComponent.retained;
  TextureAttributesRetained rt =  (TextureAttributesRetained) retained;

  Color4f c = new Color4f();
  attr.getTextureBlendColor(c);
  Transform3D t = new Transform3D();
  attr.getTextureTransform(t);

  rt.initTextureMode(attr.getTextureMode());
View Full Code Here

/*  664 */       this.colors4 = null;
/*      */     } else {
/*  666 */       this.colors3 = null;
/*  667 */       this.colors4 = new Color4f[colors.length];
/*  668 */       for (int i = 0; i < colors.length; i++)
/*  669 */         this.colors4[i] = new Color4f((colors[i].x & 0xFF) / 255.0F, (colors[i].y & 0xFF) / 255.0F, (colors[i].z & 0xFF) / 255.0F, (colors[i].w & 0xFF) / 255.0F);
/*      */     }
/*      */   }
View Full Code Here

TOP

Related Classes of javax.vecmath.Color4f

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.