Package javax.media.j3d

Examples of javax.media.j3d.ImageComponent

If intValue is greater than 127, then byteVariable will be negative. The correct value will be extracted when it is used (by masking off the upper bits).

/*     */     }
/*     */   }
/*     */
/*     */   private void updateText2D(String text, Color3f color, String fontName, int fontSize, int fontStyle)
/*     */   {
/* 152 */     ImageComponent imageComponent = setupImage(text, color, fontName, fontSize, fontStyle);
/*     */
/* 155 */     Texture2D t2d = setupTexture(imageComponent);
/*     */
/* 157 */     QuadArray rect = setupGeometry(imageComponent.getWidth(), imageComponent.getHeight());
/*     */
/* 159 */     setGeometry(rect);
/*     */
/* 161 */     Appearance appearance = setupAppearance(t2d);
/* 162 */     setAppearance(appearance);
View Full Code Here


/* 261 */     offscreenGraphics.setFont(font);
/* 262 */     Color myTextColor = new Color(color.x, color.y, color.z, 1.0F);
/* 263 */     offscreenGraphics.setColor(myTextColor);
/* 264 */     offscreenGraphics.drawString(text, 0, height - descent);
/*     */
/* 266 */     ImageComponent imageComponent = new ImageComponent2D(2, bImage);
/*     */
/* 270 */     imageComponent.setCapability(0);
/*     */
/* 272 */     return imageComponent;
/*     */   }
View Full Code Here

TOP

Related Classes of javax.media.j3d.ImageComponent

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.