Package org.lwjgl.egl
Class EGLClientPixmapHI
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.egl.EGLClientPixmapHI
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class EGLClientPixmapHI extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Specifies the width, height, stride, format and memory pointer of the pixmap to be used by the functionCreatePixmapSurfaceHI
to create thePixmapSurface
.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 toiHeight * 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.
Layout
struct EGLClientPixmapHI { void * pData; EGLint iWidth; EGLint iHeight; EGLint iStride; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EGLClientPixmapHI.Buffer
An array ofEGLClientPixmapHI
structs.
-
Constructor Summary
Constructors Constructor Description EGLClientPixmapHI(java.nio.ByteBuffer container)
Creates aEGLClientPixmapHI
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EGLClientPixmapHI
calloc()
Returns a newEGLClientPixmapHI
instance allocated withmemCalloc
.static EGLClientPixmapHI.Buffer
calloc(int capacity)
Returns a newEGLClientPixmapHI.Buffer
instance allocated withmemCalloc
.static EGLClientPixmapHI
callocStack()
Returns a newEGLClientPixmapHI
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static EGLClientPixmapHI.Buffer
callocStack(int capacity)
Returns a newEGLClientPixmapHI.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static EGLClientPixmapHI.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEGLClientPixmapHI.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static EGLClientPixmapHI
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newEGLClientPixmapHI
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static EGLClientPixmapHI
create()
Returns a newEGLClientPixmapHI
instance allocated withBufferUtils
.static EGLClientPixmapHI.Buffer
create(int capacity)
Returns a newEGLClientPixmapHI.Buffer
instance allocated withBufferUtils
.static EGLClientPixmapHI
create(long address)
Returns a newEGLClientPixmapHI
instance for the specified memory address.static EGLClientPixmapHI.Buffer
create(long address, int capacity)
Create aEGLClientPixmapHI.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 theiHeight
field.EGLClientPixmapHI
iHeight(int value)
Sets the specified value to theiHeight
field.int
iStride()
Returns the value of theiStride
field.EGLClientPixmapHI
iStride(int value)
Sets the specified value to theiStride
field.int
iWidth()
Returns the value of theiWidth
field.EGLClientPixmapHI
iWidth(int value)
Sets the specified value to theiWidth
field.static EGLClientPixmapHI
malloc()
Returns a newEGLClientPixmapHI
instance allocated withmemAlloc
.static EGLClientPixmapHI.Buffer
malloc(int capacity)
Returns a newEGLClientPixmapHI.Buffer
instance allocated withmemAlloc
.static EGLClientPixmapHI
mallocStack()
Returns a newEGLClientPixmapHI
instance allocated on the thread-localMemoryStack
.static EGLClientPixmapHI.Buffer
mallocStack(int capacity)
Returns a newEGLClientPixmapHI.Buffer
instance allocated on the thread-localMemoryStack
.static EGLClientPixmapHI.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEGLClientPixmapHI.Buffer
instance allocated on the specifiedMemoryStack
.static EGLClientPixmapHI
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newEGLClientPixmapHI
instance allocated on the specifiedMemoryStack
.static int
niHeight(long struct)
Unsafe version ofiHeight()
.static void
niHeight(long struct, int value)
Unsafe version ofiHeight
.static int
niStride(long struct)
Unsafe version ofiStride()
.static void
niStride(long struct, int value)
Unsafe version ofiStride
.static int
niWidth(long struct)
Unsafe version ofiWidth()
.static void
niWidth(long struct, int value)
Unsafe version ofiWidth
.static java.nio.ByteBuffer
npData(long struct, int capacity)
Unsafe version ofpData
.static void
npData(long struct, java.nio.ByteBuffer value)
Unsafe version ofpData
.java.nio.ByteBuffer
pData(int capacity)
Returns aByteBuffer
view of the data pointed to by thepData
field.EGLClientPixmapHI
pData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thepData
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 beNULL
.static void
validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
EGLClientPixmapHI
public EGLClientPixmapHI(java.nio.ByteBuffer container)
Creates aEGLClientPixmapHI
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
pData
public java.nio.ByteBuffer pData(int capacity)
Returns aByteBuffer
view of the data pointed to by thepData
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
iWidth
public int iWidth()
Returns the value of theiWidth
field.
-
iHeight
public int iHeight()
Returns the value of theiHeight
field.
-
iStride
public int iStride()
Returns the value of theiStride
field.
-
pData
public EGLClientPixmapHI pData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thepData
field.
-
iWidth
public EGLClientPixmapHI iWidth(int value)
Sets the specified value to theiWidth
field.
-
iHeight
public EGLClientPixmapHI iHeight(int value)
Sets the specified value to theiHeight
field.
-
iStride
public EGLClientPixmapHI iStride(int value)
Sets the specified value to theiStride
field.
-
set
public EGLClientPixmapHI set(java.nio.ByteBuffer pData, int iWidth, int iHeight, int iStride)
Initializes this struct with the specified values.
-
set
public EGLClientPixmapHI set(EGLClientPixmapHI src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static EGLClientPixmapHI malloc()
Returns a newEGLClientPixmapHI
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static EGLClientPixmapHI calloc()
Returns a newEGLClientPixmapHI
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static EGLClientPixmapHI create()
Returns a newEGLClientPixmapHI
instance allocated withBufferUtils
.
-
create
public static EGLClientPixmapHI create(long address)
Returns a newEGLClientPixmapHI
instance for the specified memory address.
-
createSafe
@Nullable public static EGLClientPixmapHI createSafe(long address)
-
malloc
public static EGLClientPixmapHI.Buffer malloc(int capacity)
Returns a newEGLClientPixmapHI.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static EGLClientPixmapHI.Buffer calloc(int capacity)
Returns a newEGLClientPixmapHI.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static EGLClientPixmapHI.Buffer create(int capacity)
Returns a newEGLClientPixmapHI.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static EGLClientPixmapHI.Buffer create(long address, int capacity)
Create aEGLClientPixmapHI.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static EGLClientPixmapHI.Buffer createSafe(long address, int capacity)
-
mallocStack
public static EGLClientPixmapHI mallocStack()
Returns a newEGLClientPixmapHI
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static EGLClientPixmapHI callocStack()
Returns a newEGLClientPixmapHI
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static EGLClientPixmapHI mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newEGLClientPixmapHI
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static EGLClientPixmapHI callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newEGLClientPixmapHI
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static EGLClientPixmapHI.Buffer mallocStack(int capacity)
Returns a newEGLClientPixmapHI.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static EGLClientPixmapHI.Buffer callocStack(int capacity)
Returns a newEGLClientPixmapHI.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static EGLClientPixmapHI.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEGLClientPixmapHI.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static EGLClientPixmapHI.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEGLClientPixmapHI.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
npData
public static java.nio.ByteBuffer npData(long struct, int capacity)
Unsafe version ofpData
.
-
niWidth
public static int niWidth(long struct)
Unsafe version ofiWidth()
.
-
niHeight
public static int niHeight(long struct)
Unsafe version ofiHeight()
.
-
niStride
public static int niStride(long struct)
Unsafe version ofiStride()
.
-
npData
public static void npData(long struct, java.nio.ByteBuffer value)
Unsafe version ofpData
.
-
niWidth
public static void niWidth(long struct, int value)
Unsafe version ofiWidth
.
-
niHeight
public static void niHeight(long struct, int value)
Unsafe version ofiHeight
.
-
niStride
public static void niStride(long struct, int value)
Unsafe version ofiStride
.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-
validate
public static void validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.- Parameters:
array
- the struct array to validatecount
- the number of structs inarray
-
-