|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jogamp.opengl.util.GLPixelBuffer.DefaultGLPixelBufferProvider
public static class GLPixelBuffer.DefaultGLPixelBufferProvider
| Constructor Summary | |
|---|---|
GLPixelBuffer.DefaultGLPixelBufferProvider(boolean allowRowStride)
|
|
| Method Summary | |
|---|---|
GLPixelBuffer |
allocate(GL gl,
GLPixelBuffer.GLPixelAttributes pixelAttributes,
int width,
int height,
int depth,
boolean pack,
int minByteSize)
Allocates a new GLPixelBuffer object. |
boolean |
getAllowRowStride()
Allow GL2ES3.GL_PACK_ROW_LENGTH, or GL2ES2.GL_UNPACK_ROW_LENGTH. |
GLPixelBuffer.GLPixelAttributes |
getAttributes(GL gl,
int componentCount)
Called first to determine GLPixelBuffer.GLPixelAttributes. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GLPixelBuffer.DefaultGLPixelBufferProvider(boolean allowRowStride)
allowRowStride - If true, allow row-stride, otherwise not.
See getAllowRowStride() and GLPixelBuffer.requiresNewBuffer(GL, int, int, int).| Method Detail |
|---|
public boolean getAllowRowStride()
GLPixelBuffer.GLPixelBufferProviderGL2ES3.GL_PACK_ROW_LENGTH, or GL2ES2.GL_UNPACK_ROW_LENGTH.
getAllowRowStride in interface GLPixelBuffer.GLPixelBufferProvider
public GLPixelBuffer.GLPixelAttributes getAttributes(GL gl,
int componentCount)
GLPixelBuffer.GLPixelBufferProviderGLPixelBuffer.GLPixelAttributes.
getAttributes in interface GLPixelBuffer.GLPixelBufferProvider
public GLPixelBuffer allocate(GL gl,
GLPixelBuffer.GLPixelAttributes pixelAttributes,
int width,
int height,
int depth,
boolean pack,
int minByteSize)
GLPixelBuffer object.
Being called to gather the initial GLPixelBuffer,
or a new replacement GLPixelBuffer if GLPixelBuffer.requiresNewBuffer(GL, int, int, int).
The minimum required remaining byte size equals to minByteSize, if > 0,
otherwise utilize GLBuffers.sizeof(GL, int[], int, int, int, int, int, boolean)
to calculate it.
Returns an NIO ByteBuffer.
allocate in interface GLPixelBuffer.GLPixelBufferProvidergl - the corresponding current GL context objectpixelAttributes - the desired GLPixelBuffer.GLPixelAttributeswidth - in pixelsheight - in pixelsdepth - in pixelspack - true for read mode GPU -> CPU, otherwise false for write mode CPU -> GPUminByteSize - if > 0, the pre-calculated minimum byte-size for the resulting buffer, otherwise ignore.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||