public class EGLClientPixmapHI
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
CreatePixmapSurfaceHI to
create the PixmapSurface.
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 pixelsiHeight –
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.
struct EGLClientPixmapHI {
void * pData;
EGLint iWidth;
EGLint iHeight;
EGLint iStride;
}| Modifier and Type | Class and Description |
|---|---|
static class |
EGLClientPixmapHI.Buffer
An array of
EGLClientPixmapHI structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
IHEIGHT
The struct member offsets.
|
static int |
ISTRIDE
The struct member offsets.
|
static int |
IWIDTH
The struct member offsets.
|
static int |
PDATA
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
EGLClientPixmapHI(java.nio.ByteBuffer container)
Creates a
EGLClientPixmapHI instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static EGLClientPixmapHI |
calloc()
Returns a new
EGLClientPixmapHI instance allocated with memCalloc. |
static EGLClientPixmapHI.Buffer |
calloc(int capacity)
Returns a new
EGLClientPixmapHI.Buffer instance allocated with memCalloc. |
static EGLClientPixmapHI |
callocStack()
Returns a new
EGLClientPixmapHI instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static EGLClientPixmapHI.Buffer |
callocStack(int capacity)
Returns a new
EGLClientPixmapHI.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static EGLClientPixmapHI.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
EGLClientPixmapHI.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static EGLClientPixmapHI |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
EGLClientPixmapHI instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static EGLClientPixmapHI |
create()
Returns a new
EGLClientPixmapHI instance allocated with BufferUtils. |
static EGLClientPixmapHI.Buffer |
create(int capacity)
Returns a new
EGLClientPixmapHI.Buffer instance allocated with BufferUtils. |
static EGLClientPixmapHI |
create(long address)
Returns a new
EGLClientPixmapHI instance for the specified memory address. |
static EGLClientPixmapHI.Buffer |
create(long address,
int capacity)
Create a
EGLClientPixmapHI.Buffer instance at the specified memory. |
static EGLClientPixmapHI |
createSafe(long address)
|
static EGLClientPixmapHI.Buffer |
createSafe(long address,
int capacity)
|
int |
iHeight()
Returns the value of the
iHeight field. |
EGLClientPixmapHI |
iHeight(int value)
Sets the specified value to the
iHeight field. |
int |
iStride()
Returns the value of the
iStride field. |
EGLClientPixmapHI |
iStride(int value)
Sets the specified value to the
iStride field. |
int |
iWidth()
Returns the value of the
iWidth field. |
EGLClientPixmapHI |
iWidth(int value)
Sets the specified value to the
iWidth field. |
static EGLClientPixmapHI |
malloc()
Returns a new
EGLClientPixmapHI instance allocated with memAlloc. |
static EGLClientPixmapHI.Buffer |
malloc(int capacity)
Returns a new
EGLClientPixmapHI.Buffer instance allocated with memAlloc. |
static EGLClientPixmapHI |
mallocStack()
Returns a new
EGLClientPixmapHI instance allocated on the thread-local MemoryStack. |
static EGLClientPixmapHI.Buffer |
mallocStack(int capacity)
Returns a new
EGLClientPixmapHI.Buffer instance allocated on the thread-local MemoryStack. |
static EGLClientPixmapHI.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
EGLClientPixmapHI.Buffer instance allocated on the specified MemoryStack. |
static EGLClientPixmapHI |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
EGLClientPixmapHI instance allocated on the specified MemoryStack. |
static int |
niHeight(long struct)
Unsafe version of
iHeight(). |
static void |
niHeight(long struct,
int value)
Unsafe version of
iHeight. |
static int |
niStride(long struct)
Unsafe version of
iStride(). |
static void |
niStride(long struct,
int value)
Unsafe version of
iStride. |
static int |
niWidth(long struct)
Unsafe version of
iWidth(). |
static void |
niWidth(long struct,
int value)
Unsafe version of
iWidth. |
static void |
npData(long struct,
java.nio.ByteBuffer value)
Unsafe version of
pData. |
static java.nio.ByteBuffer |
npData(long struct,
int capacity)
Unsafe version of
pData. |
EGLClientPixmapHI |
pData(java.nio.ByteBuffer value)
Sets the address of the specified
ByteBuffer to the pData field. |
java.nio.ByteBuffer |
pData(int capacity)
Returns a
ByteBuffer view of the data pointed to by the pData field. |
EGLClientPixmapHI |
set(java.nio.ByteBuffer pData,
int iWidth,
int iHeight,
int iStride)
Initializes this struct with the specified values.
|
EGLClientPixmapHI |
set(EGLClientPixmapHI src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int PDATA
public static final int IWIDTH
public static final int IHEIGHT
public static final int ISTRIDE
public EGLClientPixmapHI(java.nio.ByteBuffer container)
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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic java.nio.ByteBuffer pData(int capacity)
ByteBuffer view of the data pointed to by the pData field.capacity - the number of elements in the returned bufferpublic int iWidth()
iWidth field.public int iHeight()
iHeight field.public int iStride()
iStride field.public EGLClientPixmapHI pData(java.nio.ByteBuffer value)
ByteBuffer to the pData field.public EGLClientPixmapHI iWidth(int value)
iWidth field.public EGLClientPixmapHI iHeight(int value)
iHeight field.public EGLClientPixmapHI iStride(int value)
iStride field.public EGLClientPixmapHI set(java.nio.ByteBuffer pData, int iWidth, int iHeight, int iStride)
public EGLClientPixmapHI set(EGLClientPixmapHI src)
src - the source structpublic static EGLClientPixmapHI malloc()
EGLClientPixmapHI instance allocated with memAlloc. The instance must be explicitly freed.public static EGLClientPixmapHI calloc()
EGLClientPixmapHI instance allocated with memCalloc. The instance must be explicitly freed.public static EGLClientPixmapHI create()
EGLClientPixmapHI instance allocated with BufferUtils.public static EGLClientPixmapHI create(long address)
EGLClientPixmapHI instance for the specified memory address.@Nullable public static EGLClientPixmapHI createSafe(long address)
public static EGLClientPixmapHI.Buffer malloc(int capacity)
EGLClientPixmapHI.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static EGLClientPixmapHI.Buffer calloc(int capacity)
EGLClientPixmapHI.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static EGLClientPixmapHI.Buffer create(int capacity)
EGLClientPixmapHI.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static EGLClientPixmapHI.Buffer create(long address, int capacity)
EGLClientPixmapHI.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static EGLClientPixmapHI.Buffer createSafe(long address, int capacity)
public static EGLClientPixmapHI mallocStack()
EGLClientPixmapHI instance allocated on the thread-local MemoryStack.public static EGLClientPixmapHI callocStack()
EGLClientPixmapHI instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static EGLClientPixmapHI mallocStack(org.lwjgl.system.MemoryStack stack)
EGLClientPixmapHI instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static EGLClientPixmapHI callocStack(org.lwjgl.system.MemoryStack stack)
EGLClientPixmapHI instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static EGLClientPixmapHI.Buffer mallocStack(int capacity)
EGLClientPixmapHI.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static EGLClientPixmapHI.Buffer callocStack(int capacity)
EGLClientPixmapHI.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static EGLClientPixmapHI.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
EGLClientPixmapHI.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static EGLClientPixmapHI.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
EGLClientPixmapHI.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static java.nio.ByteBuffer npData(long struct,
int capacity)
pData.public static int niWidth(long struct)
iWidth().public static int niHeight(long struct)
iHeight().public static int niStride(long struct)
iStride().public static void npData(long struct,
java.nio.ByteBuffer value)
pData.public static void niWidth(long struct,
int value)
iWidth.public static void niHeight(long struct,
int value)
iHeight.public static void niStride(long struct,
int value)
iStride.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.