Package org.lwjgl.egl

Class EGLClientPixmapHI

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer


    public class EGLClientPixmapHI
    extends Struct
    Specifies the width, height, stride, format and memory pointer of the pixmap to be used by the function CreatePixmapSurfaceHI to create the PixmapSurface.

    Member documentation

    • pData – pointer to a memory buffer allocated by the application that will contain the result of the drawing operations. It is up to the application to ensure that the buffer size corresponds to iHeight * iStride * sizeof(pixel).
    • iWidth – width of the buffer in pixels
    • iHeight – height of the buffer in pixels. The height of the buffer can be negative; in that case the result of the drawing operations will be vertically swapped. When positive, pData will point at the bottom-left corner of the image; when negative, to the top-left corner.
    • iStride – stride of the buffer, in pixels. It is important to note that each row of the buffer must start on 32-bit boundaries.

    Layout

    struct EGLClientPixmapHI {
        void * pData;
        EGLint iWidth;
        EGLint iHeight;
        EGLint iStride;
    }
    • Field Detail

      • SIZEOF

        public static final int SIZEOF
        The struct size in bytes.
    • Constructor Detail

      • EGLClientPixmapHI

        public EGLClientPixmapHI(java.nio.ByteBuffer container)
        Creates a EGLClientPixmapHI instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.