Package com.sun.j3d.internal

Source Code of com.sun.j3d.internal.FloatBufferWrapper

/*     */ package com.sun.j3d.internal;
/*     */
/*     */ import java.nio.Buffer;
/*     */ import java.nio.FloatBuffer;
/*     */ import javax.media.j3d.J3DBuffer;
/*     */
/*     */ public class FloatBufferWrapper extends BufferWrapper
/*     */ {
/*  26 */   private FloatBuffer buffer = null;
/*     */
/*     */   public FloatBufferWrapper(FloatBuffer buffer)
/*     */   {
/*  33 */     this.buffer = buffer;
/*     */   }
/*     */
/*     */   public FloatBufferWrapper(J3DBuffer b)
/*     */   {
/*  41 */     this.buffer = ((FloatBuffer)b.getBuffer());
/*     */   }
/*     */
/*     */   public Buffer getBuffer()
/*     */   {
/*  49 */     return this.buffer;
/*     */   }
/*     */
/*     */   public boolean isDirect()
/*     */   {
/*  60 */     return this.buffer.isDirect();
/*     */   }
/*     */
/*     */   public float get()
/*     */   {
/*  68 */     return this.buffer.get();
/*     */   }
/*     */
/*     */   public float get(int index)
/*     */   {
/*  75 */     return this.buffer.get(index);
/*     */   }
/*     */
/*     */   public FloatBufferWrapper get(float[] dst)
/*     */   {
/*  85 */     this.buffer.get(dst);
/*  86 */     return this;
/*     */   }
/*     */
/*     */   public FloatBufferWrapper get(float[] dst, int offset, int length)
/*     */   {
/*  95 */     this.buffer.get(dst, offset, length);
/*  96 */     return this;
/*     */   }
/*     */
/*     */   public FloatBufferWrapper put(float[] src)
/*     */   {
/* 104 */     this.buffer.put(src);
/* 105 */     return this;
/*     */   }
/*     */
/*     */   public J3DBuffer getJ3DBuffer()
/*     */   {
/* 113 */     return new J3DBuffer(this.buffer);
/*     */   }
/*     */ }

/* Location:           Z:\System\Library\Java\Extensions\j3dutils.jar
* Qualified Name:     com.sun.j3d.internal.FloatBufferWrapper
* JD-Core Version:    0.6.2
*/
TOP

Related Classes of com.sun.j3d.internal.FloatBufferWrapper

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.