com.jogamp.opengl.util

## Interface GLPixelBuffer.SingletonGLPixelBufferProvider

- All Superinterfaces:
    GLPixelBuffer.GLPixelBufferProvider
  All Known Implementing Classes:
    AWTGLPixelBuffer.SingleAWTGLPixelBufferProvider
  Enclosing class:
    GLPixelBuffer

      public static interface GLPixelBuffer.SingletonGLPixelBufferProvider
      extends GLPixelBuffer.GLPixelBufferProvider

  Single `GLPixelBuffer` provider.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `GLPixelBuffer` | `getSingleBuffer(GLPixelBuffer.GLPixelAttributes pixelAttributes)` Return the last `allocated` `GLPixelBuffer` w/ `GLPixelBuffer.GLPixelAttributes.componentCount`.
    `GLPixelBuffer` | `initSingleton(int componentCount, int width, int height, int depth, boolean pack)` Initializes the single `GLPixelBuffer` w/ a given size, if not yet `allocated`.

    - ### Methods inherited from interface com.jogamp.opengl.util.GLPixelBuffer.GLPixelBufferProvider

      `allocate, getAllowRowStride, getAttributes`

- - ### Method Detail

    - #### getSingleBuffer

          GLPixelBuffer getSingleBuffer(GLPixelBuffer.GLPixelAttributes pixelAttributes)

      Return the last `allocated` `GLPixelBuffer` w/ `GLPixelBuffer.GLPixelAttributes.componentCount`.

    - #### initSingleton

          GLPixelBuffer initSingleton(int componentCount,
                                    int width,
                                    int height,
                                    int depth,
                                    boolean pack)

      Initializes the single `GLPixelBuffer` w/ a given size, if not yet `allocated`.
      Returns:
        the newly initialized single `GLPixelBuffer`, or null if already allocated.

Copyright 2010 JogAmp Community.