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
.Layout
struct EGLClientPixmapHI { void *
pData(int)
; EGLintiWidth()
; EGLintiHeight()
; EGLintiStride()
; }
-
-
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 Deprecated 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.Buffer
calloc(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
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newEGLClientPixmapHI
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static EGLClientPixmapHI
callocStack()
Deprecated.static EGLClientPixmapHI.Buffer
callocStack(int capacity)
Deprecated.static EGLClientPixmapHI.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static EGLClientPixmapHI
callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.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()
height of the buffer in pixels.EGLClientPixmapHI
iHeight(int value)
Sets the specified value to theiHeight()
field.int
iStride()
stride of the buffer, in pixels.EGLClientPixmapHI
iStride(int value)
Sets the specified value to theiStride()
field.int
iWidth()
width of the buffer in pixelsEGLClientPixmapHI
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.Buffer
malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEGLClientPixmapHI.Buffer
instance allocated on the specifiedMemoryStack
.static EGLClientPixmapHI
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newEGLClientPixmapHI
instance allocated on the specifiedMemoryStack
.static EGLClientPixmapHI
mallocStack()
Deprecated.static EGLClientPixmapHI.Buffer
mallocStack(int capacity)
Deprecated.static EGLClientPixmapHI.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static EGLClientPixmapHI
mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.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)
EGLClientPixmapHI
pData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thepData(int)
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
.
-
-
-
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)
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- 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
public int iWidth()
width of the buffer in pixels
-
iHeight
public int 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
public int iStride()
stride of the buffer, in pixels. It is important to note that each row of the buffer must start on 32-bit boundaries.
-
pData
public EGLClientPixmapHI pData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thepData(int)
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
@Deprecated public static EGLClientPixmapHI mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static EGLClientPixmapHI callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static EGLClientPixmapHI mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static EGLClientPixmapHI callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static EGLClientPixmapHI.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead.
-
callocStack
@Deprecated public static EGLClientPixmapHI.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead.
-
mallocStack
@Deprecated public static EGLClientPixmapHI.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead.
-
callocStack
@Deprecated public static EGLClientPixmapHI.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead.
-
malloc
public static EGLClientPixmapHI malloc(org.lwjgl.system.MemoryStack stack)
Returns a newEGLClientPixmapHI
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static EGLClientPixmapHI calloc(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
-
malloc
public static EGLClientPixmapHI.Buffer malloc(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
-
calloc
public static EGLClientPixmapHI.Buffer calloc(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
-
-