com.jmex.subdivision
Class Subdivision.SubdivisionBuffer

java.lang.Object
  extended by com.jmex.subdivision.Subdivision.SubdivisionBuffer
Enclosing class:
Subdivision

protected class Subdivision.SubdivisionBuffer
extends java.lang.Object


Field Summary
 java.nio.FloatBuffer buf
          The buffer
 int elemSize
          The buffer's element size (e.g.
 boolean linear
          Whether or not the buffer should be linearly interpolated (for example, it doesn't make sense to use higher-order interpolation on texture coordinates, should probably be false in most cases)
 Subdivision.BufferType type
          states which type of buffer this is
 
Constructor Summary
Subdivision.SubdivisionBuffer(java.nio.FloatBuffer buf, int elemSize, boolean linear, Subdivision.BufferType type)
          Constructor for SubdivisionBuffer
Subdivision.SubdivisionBuffer(java.nio.FloatBuffer buf, Subdivision.BufferType type)
          Constructor for SubdivisionBuffer
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buf

public java.nio.FloatBuffer buf
The buffer


elemSize

public int elemSize
The buffer's element size (e.g. 3 for normal buffers, 2 for texture buffers, 4 for color buffers)


linear

public boolean linear
Whether or not the buffer should be linearly interpolated (for example, it doesn't make sense to use higher-order interpolation on texture coordinates, should probably be false in most cases)


type

public Subdivision.BufferType type
states which type of buffer this is

Constructor Detail

Subdivision.SubdivisionBuffer

public Subdivision.SubdivisionBuffer(java.nio.FloatBuffer buf,
                                     int elemSize,
                                     boolean linear,
                                     Subdivision.BufferType type)
Constructor for SubdivisionBuffer

Parameters:
buf - The buffer
elemSize - The buffer's element size (e.g. 3 for normal buffers, 2 for texture buffers, 4 for color buffers)
linear - Whether or not the buffer should be linearly interpolated (for example, it doesn't make sense to use higher-order interpolation on texture coordinates). Should probably be false in most cases
type - The type of buffer, needed when applying buffers to batches

Subdivision.SubdivisionBuffer

public Subdivision.SubdivisionBuffer(java.nio.FloatBuffer buf,
                                     Subdivision.BufferType type)
Constructor for SubdivisionBuffer

Parameters:
buf - The buffer
type - The type of buffer, needed when applying buffers to batches