Package com.sun.j3d.internal

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


/* 330 */             if (BufferWrapper.getBufferType(buf) == 0) {
/* 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) {
View Full Code Here


/* 371 */               if (BufferWrapper.getBufferType(buf) == 0) {
/* 372 */                 out.writeInt(0);
/*     */               } else {
/* 374 */                 out.writeInt(2);
/* 375 */                 FloatBufferWrapper bb = new FloatBufferWrapper(buf);
/* 376 */                 float[] floats = new float[bb.limit()];
/* 377 */                 bb.position(0);
/* 378 */                 bb.get(floats);
/* 379 */                 writeFloatArray(out, floats);
/*     */               }
/* 381 */             } else if (((GeometryArray)this.node).getTexCoordRef2f(set) != null) {
View Full Code Here

/* 410 */               if (BufferWrapper.getBufferType(buf) == 0) {
/* 411 */                 out.writeInt(0);
/*     */               } else {
/* 413 */                 out.writeInt(2);
/* 414 */                 FloatBufferWrapper bb = new FloatBufferWrapper(buf);
/* 415 */                 float[] floats = new float[bb.limit()];
/* 416 */                 bb.position(0);
/* 417 */                 bb.get(floats);
/* 418 */                 writeFloatArray(out, floats);
/*     */               }
/* 420 */             } else if (((GeometryArray)this.node).getTexCoordRef3f(set) != null) {
View Full Code Here

/* 450 */               if (BufferWrapper.getBufferType(buf) == 0) {
/* 451 */                 out.writeInt(0);
/*     */               } else {
/* 453 */                 out.writeInt(2);
/* 454 */                 FloatBufferWrapper bb = new FloatBufferWrapper(buf);
/* 455 */                 float[] floats = new float[bb.limit()];
/* 456 */                 bb.position(0);
/* 457 */                 bb.get(floats);
/* 458 */                 writeFloatArray(out, floats);
/*     */               }
/*     */             }
View Full Code Here

/*  356 */         if ((this.vertexFormat & 0x100) == 0) {
/*  357 */           switch (this.vertexType & 0x7000)
/*      */           {
/*      */           case 4096:
/*  360 */             FloatBufferWrapper texBuffer = (FloatBufferWrapper)((J3DBuffer)this.refTexCoordsBuffer[texCoordSet]).getBufferImpl();
/*  361 */             if ((this.refTexCoords[texCoordSet] != null) && (multiplier * newMax >= texBuffer.limit())) {
/*  362 */               throw new ArrayIndexOutOfBoundsException(J3dI18N.getString("IndexedGeometryArray25"));
/*      */             }
/*      */             break;
/*      */           }
/*      */
View Full Code Here

/*       */         {
/*       */         case 4096:
/*  9296 */           for (int i = 0; i < this.texCoordSetCount; i++) {
/*  9297 */             FloatBufferWrapper texBuffer = (FloatBufferWrapper)((J3DBuffer)this.refTexCoordsBuffer[i]).getBufferImpl();
/*  9298 */             if ((this.vertexFormat & 0x20) != 0) {
/*  9299 */               if (texBuffer.limit() < 2 * (this.initialTexCoordIndex[i] + validVertexCount)) {
/*  9300 */                 throw new ArrayIndexOutOfBoundsException(J3dI18N.getString("GeometryArray113"));
/*       */               }
/*       */             }
/*  9303 */             else if ((this.vertexFormat & 0x40) != 0) {
/*  9304 */               if (texBuffer.limit() < 3 * (this.initialTexCoordIndex[i] + validVertexCount)) {
View Full Code Here

/*  9299 */               if (texBuffer.limit() < 2 * (this.initialTexCoordIndex[i] + validVertexCount)) {
/*  9300 */                 throw new ArrayIndexOutOfBoundsException(J3dI18N.getString("GeometryArray113"));
/*       */               }
/*       */             }
/*  9303 */             else if ((this.vertexFormat & 0x40) != 0) {
/*  9304 */               if (texBuffer.limit() < 3 * (this.initialTexCoordIndex[i] + validVertexCount)) {
/*  9305 */                 throw new ArrayIndexOutOfBoundsException(J3dI18N.getString("GeometryArray113"));
/*       */               }
/*       */             }
/*  9308 */             else if (((this.vertexFormat & 0x400) != 0) &&
/*  9309 */               (texBuffer.limit() < 4 * (this.initialTexCoordIndex[i] + validVertexCount))) {
View Full Code Here

/*  9304 */               if (texBuffer.limit() < 3 * (this.initialTexCoordIndex[i] + validVertexCount)) {
/*  9305 */                 throw new ArrayIndexOutOfBoundsException(J3dI18N.getString("GeometryArray113"));
/*       */               }
/*       */             }
/*  9308 */             else if (((this.vertexFormat & 0x400) != 0) &&
/*  9309 */               (texBuffer.limit() < 4 * (this.initialTexCoordIndex[i] + validVertexCount))) {
/*  9310 */               throw new ArrayIndexOutOfBoundsException(J3dI18N.getString("GeometryArray113"));
/*       */             }
/*       */
/*       */           }
/*       */
View Full Code Here

/*       */
/*  9694 */     if ((this.vertexFormat & 0x800) != 0) {
/*  9695 */       if ((this.vertexType & 0x7000) == 4096) {
/*  9696 */         FloatBufferWrapper texBuffer = (FloatBufferWrapper)((J3DBuffer)this.refTexCoordsBuffer[texCoordSet]).getBufferImpl();
/*  9697 */         if ((this.vertexFormat & 0x20) != 0) {
/*  9698 */           if (texBuffer.limit() < 2 * (initialTexCoordIndex + this.validVertexCount)) {
/*  9699 */             throw new ArrayIndexOutOfBoundsException(J3dI18N.getString("GeometryArray113"));
/*       */           }
/*       */         }
/*  9702 */         else if ((this.vertexFormat & 0x40) != 0) {
/*  9703 */           if (texBuffer.limit() < 3 * (initialTexCoordIndex + this.validVertexCount)) {
View Full Code Here

/*  9698 */           if (texBuffer.limit() < 2 * (initialTexCoordIndex + this.validVertexCount)) {
/*  9699 */             throw new ArrayIndexOutOfBoundsException(J3dI18N.getString("GeometryArray113"));
/*       */           }
/*       */         }
/*  9702 */         else if ((this.vertexFormat & 0x40) != 0) {
/*  9703 */           if (texBuffer.limit() < 3 * (initialTexCoordIndex + this.validVertexCount)) {
/*  9704 */             throw new ArrayIndexOutOfBoundsException(J3dI18N.getString("GeometryArray113"));
/*       */           }
/*       */         }
/*  9707 */         else if (((this.vertexFormat & 0x400) != 0) &&
/*  9708 */           (texBuffer.limit() < 4 * (initialTexCoordIndex + this.validVertexCount))) {
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.