net.java.games.gluegen.runtime
Class BufferFactory

java.lang.Object
  extended bynet.java.games.gluegen.runtime.BufferFactory

public class BufferFactory
extends Object


Constructor Summary
BufferFactory()
           
 
Method Summary
static boolean isDirect(Buffer buf)
          Helper routine to tell whether a buffer is direct or not.
static ByteBuffer newDirectByteBuffer(int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferFactory

public BufferFactory()
Method Detail

newDirectByteBuffer

public static ByteBuffer newDirectByteBuffer(int size)

isDirect

public static boolean isDirect(Buffer buf)
Helper routine to tell whether a buffer is direct or not. Null pointers are considered direct. isDirect() should really be public in Buffer and not replicated in all subclasses.