Package com.sun.j3d.internal

Examples of com.sun.j3d.internal.ByteBufferWrapper.order()


/* 2292 */         d[(offset++)] = this.coordinates[i].z;
/*      */       }
/*      */
/* 2295 */       if (nio) {
/* 2296 */         ByteBufferWrapper b = ByteBufferWrapper.allocateDirect(d.length * 4);
/* 2297 */         FloatBufferWrapper f = b.order(ByteOrderWrapper.nativeOrder()).asFloatBuffer();
/*      */
/* 2299 */         f.put(d);
/* 2300 */         ga.setInterleavedVertexBuffer(f.getJ3DBuffer()); } else {
/* 2301 */         ga.setInterleavedVertices(d);
/*      */       } } else if (nio)
View Full Code Here


/* 2301 */         ga.setInterleavedVertices(d);
/*      */       } } else if (nio)
/*      */     {
/* 2304 */       ByteBufferWrapper b = ByteBufferWrapper.allocateDirect(this.coordinates.length * 4 * 3);
/*      */
/* 2306 */       FloatBufferWrapper f = b.order(ByteOrderWrapper.nativeOrder()).asFloatBuffer();
/*      */
/* 2308 */       f.put(vecmathToFloat(this.coordinates));
/* 2309 */       ga.setCoordRefBuffer(f.getJ3DBuffer());
/*      */
/* 2311 */       if (this.colors3 != null) {
View Full Code Here

/* 2308 */       f.put(vecmathToFloat(this.coordinates));
/* 2309 */       ga.setCoordRefBuffer(f.getJ3DBuffer());
/*      */
/* 2311 */       if (this.colors3 != null) {
/* 2312 */         b = ByteBufferWrapper.allocateDirect(this.colors3.length * 4 * 3);
/* 2313 */         f = b.order(ByteOrderWrapper.nativeOrder()).asFloatBuffer();
/* 2314 */         f.put(vecmathToFloat(this.colors3));
/* 2315 */         ga.setColorRefBuffer(f.getJ3DBuffer());
/* 2316 */       } else if (this.colors4 != null) {
/* 2317 */         b = ByteBufferWrapper.allocateDirect(this.colors4.length * 4 * 4);
/* 2318 */         f = b.order(ByteOrderWrapper.nativeOrder()).asFloatBuffer();
View Full Code Here

/* 2313 */         f = b.order(ByteOrderWrapper.nativeOrder()).asFloatBuffer();
/* 2314 */         f.put(vecmathToFloat(this.colors3));
/* 2315 */         ga.setColorRefBuffer(f.getJ3DBuffer());
/* 2316 */       } else if (this.colors4 != null) {
/* 2317 */         b = ByteBufferWrapper.allocateDirect(this.colors4.length * 4 * 4);
/* 2318 */         f = b.order(ByteOrderWrapper.nativeOrder()).asFloatBuffer();
/* 2319 */         f.put(vecmathToFloat(this.colors4));
/* 2320 */         ga.setColorRefBuffer(f.getJ3DBuffer());
/*      */       }
/*      */
/* 2323 */       if (this.normals != null) {
View Full Code Here

/* 2320 */         ga.setColorRefBuffer(f.getJ3DBuffer());
/*      */       }
/*      */
/* 2323 */       if (this.normals != null) {
/* 2324 */         b = ByteBufferWrapper.allocateDirect(this.normals.length * 4 * 3);
/* 2325 */         f = b.order(ByteOrderWrapper.nativeOrder()).asFloatBuffer();
/* 2326 */         f.put(vecmathToFloat(this.normals));
/* 2327 */         ga.setNormalRefBuffer(f.getJ3DBuffer());
/*      */       }
/*      */
/* 2330 */       for (int i = 0; i < this.texCoordSetCount; i++) {
View Full Code Here

/*      */       }
/*      */
/* 2330 */       for (int i = 0; i < this.texCoordSetCount; i++) {
/* 2331 */         b = ByteBufferWrapper.allocateDirect(this.texCoordSets[i].length * 4 * this.texCoordDim);
/*      */
/* 2333 */         f = b.order(ByteOrderWrapper.nativeOrder()).asFloatBuffer();
/* 2334 */         f.put(vecmathToFloat(this.texCoordSets[i]));
/* 2335 */         ga.setTexCoordRefBuffer(i, f.getJ3DBuffer());
/*      */       }
/* 2337 */     } else if (byRef)
/*      */     {
View Full Code Here

/* 524 */               break;
/*     */             case 2:
/* 526 */               float[] floats = readFloatArray(in);
/* 527 */               ByteBufferWrapper b = ByteBufferWrapper.allocateDirect(floats.length * 4);
/*     */
/* 529 */               FloatBufferWrapper f = b.order(ByteOrderWrapper.nativeOrder()).asFloatBuffer();
/*     */
/* 531 */               f.put(floats);
/* 532 */               ((GeometryArray)this.node).setColorRefBuffer(f.getJ3DBuffer());
/*     */             }
/*     */           }
View Full Code Here

/* 596 */               break;
/*     */             case 2:
/* 598 */               float[] floats = readFloatArray(in);
/* 599 */               ByteBufferWrapper b = ByteBufferWrapper.allocateDirect(floats.length * 4);
/*     */
/* 601 */               FloatBufferWrapper f = b.order(ByteOrderWrapper.nativeOrder()).asFloatBuffer();
/*     */
/* 603 */               f.put(floats);
/* 604 */               ((GeometryArray)this.node).setColorRefBuffer(f.getJ3DBuffer());
/*     */             }
/*     */           }
View Full Code Here

/* 659 */             switch (in.readInt()) {
/*     */             case 2:
/* 661 */               float[] floats = readFloatArray(in);
/* 662 */               ByteBufferWrapper b = ByteBufferWrapper.allocateDirect(floats.length * 4);
/*     */
/* 664 */               FloatBufferWrapper f = b.order(ByteOrderWrapper.nativeOrder()).asFloatBuffer();
/*     */
/* 666 */               f.put(floats);
/* 667 */               ((GeometryArray)this.node).setCoordRefBuffer(f.getJ3DBuffer());
/*     */
/* 669 */               break;
View Full Code Here

/* 669 */               break;
/*     */             case 3:
/* 671 */               double[] doubles = readDoubleArray(in);
/* 672 */               ByteBufferWrapper b = ByteBufferWrapper.allocateDirect(doubles.length * 4);
/*     */
/* 674 */               DoubleBufferWrapper f = b.order(ByteOrderWrapper.nativeOrder()).asDoubleBuffer();
/*     */
/* 676 */               f.put(doubles);
/* 677 */               ((GeometryArray)this.node).setCoordRefBuffer(f.getJ3DBuffer());
/*     */             }
/*     */           }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.