Objectcom.nttdocomo.ui.ogl.DirectBufferFactory
ダイレクトメモリバッファのファクトリクラスです。
GraphicsOGL で使用するバッファを確保するためのクラスです。
| メソッドの概要 | |
ByteBuffer |
allocateByteBuffer(byte[] initialData)
byte単位のダイレクトメモリバッファを確保します。 |
ByteBuffer |
allocateByteBuffer(ByteBuffer buff)
byte単位のダイレクトメモリバッファを確保します。 |
ByteBuffer |
allocateByteBuffer(int size)
byte単位のダイレクトメモリバッファを確保します。 |
FloatBuffer |
allocateFloatBuffer(byte[] initialData)
float単位のダイレクトメモリバッファを確保します。 |
FloatBuffer |
allocateFloatBuffer(FloatBuffer buff)
float単位のダイレクトメモリバッファを確保します。 |
FloatBuffer |
allocateFloatBuffer(int size)
float単位のダイレクトメモリバッファを確保します。 |
IntBuffer |
allocateIntBuffer(byte[] initialData)
int単位のダイレクトメモリバッファを確保します。 |
IntBuffer |
allocateIntBuffer(int size)
int単位のダイレクトメモリバッファを確保します。 |
IntBuffer |
allocateIntBuffer(IntBuffer buff)
int単位のダイレクトメモリバッファを確保します。 |
ShortBuffer |
allocateShortBuffer(byte[] initialData)
short単位のダイレクトメモリバッファを確保します。 |
ShortBuffer |
allocateShortBuffer(int size)
short単位のダイレクトメモリバッファを確保します。 |
ShortBuffer |
allocateShortBuffer(ShortBuffer buff)
short単位のダイレクトメモリバッファを確保します。 |
static DirectBufferFactory |
getFactory()
ダイレクトバッファを生成するファクトリを取得します。 |
| クラス Object から継承したメソッド |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| メソッドの詳細 |
public static DirectBufferFactory getFactory()
ダイレクトバッファを生成するファクトリを取得します。
public ByteBuffer allocateByteBuffer(int size)
byte単位のダイレクトメモリバッファを確保します。
確保されたエリアのメモリはゼロで初期化されます。
size - 確保する要素数
IllegalArgumentException - sizeが0以下の値の場合に発生します。public ByteBuffer allocateByteBuffer(byte[] initialData)
byte単位のダイレクトメモリバッファを確保します。
initialDataの配列長分のメモリバッファを確保後、初期データをinitialDataに設定します。
initialData - 初期データ
NullPointerException - initialDataがnullの場合に発生します。
IllegalArgumentException - initialDataの配列長が0の場合に発生します。public ByteBuffer allocateByteBuffer(ByteBuffer buff)
byte単位のダイレクトメモリバッファを確保します。
buff.length分のメモリバッファを確保後、初期データをbuffからコピーします。
buff - コピーするバッファ
NullPointerException - buffがnullの場合に発生します。
IllegalArgumentException - buffの配列長が0の場合に発生します。public ShortBuffer allocateShortBuffer(int size)
short単位のダイレクトメモリバッファを確保します。
確保されたエリアのメモリはゼロで初期化されます。
size - 確保する要素数
IllegalArgumentException - sizeが0以下の値の場合に発生します。public ShortBuffer allocateShortBuffer(byte[] initialData)
short単位のダイレクトメモリバッファを確保します。
initialDataの配列長分のメモリバッファを確保後、初期データをinitialDataに設定します。 initialDataのサイズが奇数の場合、最後のデータは捨てられます。
initialData - 初期データ
NullPointerException - initialDataがnullの場合に発生します。
IllegalArgumentException - initialDataの配列長が1以下の場合に発生します。public ShortBuffer allocateShortBuffer(ShortBuffer buff)
short単位のダイレクトメモリバッファを確保します。
buff.length分のメモリバッファを確保後、初期データをbuffからコピーします。
buff - コピーするバッファ
NullPointerException - buffがnullの場合に発生します。
IllegalArgumentException - buffの配列長が0の場合に発生します。public IntBuffer allocateIntBuffer(int size)
int単位のダイレクトメモリバッファを確保します。
確保されたエリアのメモリはゼロで初期化されます。
size - 確保する要素数
IllegalArgumentException - sizeが0以下の値の場合に発生します。public IntBuffer allocateIntBuffer(byte[] initialData)
int単位のダイレクトメモリバッファを確保します。
initialDataの配列長分のメモリバッファを確保後、初期データをinitialDataに設定します。 initialDataのサイズが4で割り切れない場合、最後のデータ(最大3バイト)は捨てられます。
initialData - 初期データ
NullPointerException - initialDataがnullの場合に発生します。
IllegalArgumentException - initialDataの配列長が3以下の場合に発生します。public IntBuffer allocateIntBuffer(IntBuffer buff)
int単位のダイレクトメモリバッファを確保します。
buff.length分のメモリバッファを確保後、初期データをbuffからコピーします。
buff - コピーするバッファ
NullPointerException - buffがnullの場合に発生します。
IllegalArgumentException - buffの配列長が0の場合に発生します。public FloatBuffer allocateFloatBuffer(int size)
float単位のダイレクトメモリバッファを確保します。
確保されたエリアのメモリはゼロで初期化されます。
size - 確保する要素数
IllegalArgumentException - sizeが0以下の値の場合に発生します。public FloatBuffer allocateFloatBuffer(byte[] initialData)
float単位のダイレクトメモリバッファを確保します。
initialDataの配列長分のメモリバッファを確保後、初期データをinitialDataに設定します。 initialDataのサイズが4で割り切れない場合、最後のデータ(最大3バイト)は捨てられます。
initialData - 初期データ
NullPointerException - initialDataがnullの場合に発生します。
IllegalArgumentException - initialDataの配列長が3以下の場合に発生します。public FloatBuffer allocateFloatBuffer(FloatBuffer buff)
float単位のダイレクトメモリバッファを確保します。
buff.length分のメモリバッファを確保後、初期データをbuffからコピーします。
buff - コピーするバッファ
NullPointerException - buffがnullの場合に発生します。
IllegalArgumentException - buffの配列長が0の場合に発生します。