Package com.sun.j3d.internal

Examples of com.sun.j3d.internal.FloatBufferWrapper.position()


/* 717 */               J3DBuffer buf = geomArray.getTexCoordRefBuffer(i);
/*     */
/* 719 */               if (BufferWrapper.getBufferType(buf) == 3) {
/* 720 */                 FloatBufferWrapper bb = new FloatBufferWrapper(buf);
/* 721 */                 float[] c = new float[valid * 2];
/* 722 */                 bb.position(initial * 2);
/* 723 */                 bb.get(c, 0, valid * 2);
/* 724 */                 tex = new TexCoord2f[valid];
/* 725 */                 for (int j = 0; j < valid; j++) {
/* 726 */                   tex[j] = new TexCoord2f(c[(j * 2 + 0)], c[(j * 2 + 1)]);
/*     */                 }
View Full Code Here


/*  3169 */       if ((src.vertexType & 0x7000) != 0)
/*  3170 */         for (index = start; index < end; index++) {
/*  3171 */           int i = 0; tOffset = vOffset;
/*  3172 */           for (; i < this.texCoordSetCount; i++) {
/*  3173 */             FloatBufferWrapper texBuffer = (FloatBufferWrapper)((J3DBuffer)src.refTexCoordsBuffer[i]).getBufferImpl();
/*  3174 */             texBuffer.position(((int[])(int[])src.indexTexCoord[i])[index] * this.texCoordStride);
/*  3175 */             texBuffer.get(this.vertexData, tOffset, this.texCoordStride);
/*  3176 */             tOffset += this.texCoordStride;
/*       */           }
/*  3178 */           vOffset += this.stride;
/*       */         }
View Full Code Here

/* 607 */             int index = j + base;
/*     */
/* 609 */             int k = 0; tOffset = vOffset;
/* 610 */             for (; k < this.texCoordSetCount; k++) {
/* 611 */               FloatBufferWrapper texBuffer = (FloatBufferWrapper)((J3DBuffer)src.refTexCoordsBuffer[k]).getBufferImpl();
/* 612 */               texBuffer.position(((int[])(int[])src.indexTexCoord[k])[index] * this.texCoordStride);
/* 613 */               texBuffer.get(this.vertexData, tOffset, this.texCoordStride);
/* 614 */               tOffset += this.texCoordStride;
/*     */             }
/* 616 */             vOffset += this.stride;
/*     */           }
View Full Code Here

/*     */       }
/*  93 */       if (nio) {
/*  94 */         FloatBufferWrapper x = new FloatBufferWrapper(((GeometryArray)this.node).getInterleavedVertexBuffer());
/*     */
/*  96 */         float[] f = new float[x.limit()];
/*  97 */         x.position(0);
/*  98 */         x.get(f);
/*  99 */         writeFloatArray(out, f); } else {
/* 100 */         writeFloatArray(out, ((GeometryArray)this.node).getInterleavedVertices());
/*     */       }
/*     */     } else { boolean byRef = (this.vertexFormat & 0x80) != 0;
View Full Code Here

/* 130 */               break;
/*     */             case 3:
/* 132 */               out.writeInt(2);
/* 133 */               FloatBufferWrapper bb = new FloatBufferWrapper(buf);
/* 134 */               float[] floats = new float[bb.limit()];
/* 135 */               bb.position(0);
/* 136 */               bb.get(floats);
/* 137 */               writeFloatArray(out, floats);
/*     */
/* 139 */               break;
/*     */             case 0:
View Full Code Here

/* 191 */             switch (BufferWrapper.getBufferType(buf)) {
/*     */             case 2:
/* 193 */               out.writeInt(1);
/* 194 */               ByteBufferWrapper bb = new ByteBufferWrapper(buf);
/* 195 */               byte[] bytes = new byte[bb.limit()];
/* 196 */               bb.position(0);
/* 197 */               bb.get(bytes);
/* 198 */               out.writeInt(bytes.length);
/* 199 */               out.write(bytes);
/*     */
/* 201 */               break;
View Full Code Here

/* 201 */               break;
/*     */             case 3:
/* 203 */               out.writeInt(2);
/* 204 */               FloatBufferWrapper bb = new FloatBufferWrapper(buf);
/* 205 */               float[] floats = new float[bb.limit()];
/* 206 */               bb.position(0);
/* 207 */               bb.get(floats);
/* 208 */               writeFloatArray(out, floats);
/*     */
/* 210 */               break;
/*     */             case 0:
View Full Code Here

/* 263 */             switch (BufferWrapper.getBufferType(buf)) {
/*     */             case 3:
/* 265 */               out.writeInt(2);
/* 266 */               FloatBufferWrapper bb = new FloatBufferWrapper(buf);
/* 267 */               float[] floats = new float[bb.limit()];
/* 268 */               bb.position(0);
/* 269 */               bb.get(floats);
/* 270 */               writeFloatArray(out, floats);
/*     */
/* 272 */               break;
/*     */             case 4:
View Full Code Here

/* 272 */               break;
/*     */             case 4:
/* 274 */               out.writeInt(3);
/* 275 */               DoubleBufferWrapper bb = new DoubleBufferWrapper(buf);
/* 276 */               double[] doubles = new double[bb.limit()];
/* 277 */               bb.position(0);
/* 278 */               bb.get(doubles);
/* 279 */               writeDoubleArray(out, doubles);
/*     */
/* 281 */               break;
/*     */             case 0:
View Full Code Here

/* 331 */               out.writeInt(0);
/*     */             } else {
/* 333 */               out.writeInt(2);
/* 334 */               FloatBufferWrapper bb = new FloatBufferWrapper(buf);
/* 335 */               float[] floats = new float[bb.limit()];
/* 336 */               bb.position(0);
/* 337 */               bb.get(floats);
/* 338 */               writeFloatArray(out, floats);
/*     */             }
/* 340 */           } else if (((GeometryArray)this.node).getNormalRef3f() != null) {
/* 341 */             out.writeInt(7);
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.