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.NativeResourceSpecifies the width, height, stride, format and memory pointer of the pixmap to be used by the functionCreatePixmapSurfaceHIto create thePixmapSurface.Layout
struct EGLClientPixmapHI { void *pData(int); EGLintiWidth(); EGLintiHeight(); EGLintiStride(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEGLClientPixmapHI.BufferAn array ofEGLClientPixmapHIstructs.
-
Constructor Summary
Constructors Constructor Description EGLClientPixmapHI(java.nio.ByteBuffer container)Creates aEGLClientPixmapHIinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static EGLClientPixmapHIcalloc()Returns a newEGLClientPixmapHIinstance allocated withmemCalloc.static EGLClientPixmapHI.Buffercalloc(int capacity)Returns a newEGLClientPixmapHI.Bufferinstance allocated withmemCalloc.static EGLClientPixmapHI.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newEGLClientPixmapHI.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EGLClientPixmapHIcalloc(org.lwjgl.system.MemoryStack stack)Returns a newEGLClientPixmapHIinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EGLClientPixmapHIcallocStack()Deprecated.static EGLClientPixmapHI.BuffercallocStack(int capacity)Deprecated.static EGLClientPixmapHI.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static EGLClientPixmapHIcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static EGLClientPixmapHIcreate()Returns a newEGLClientPixmapHIinstance allocated withBufferUtils.static EGLClientPixmapHI.Buffercreate(int capacity)Returns a newEGLClientPixmapHI.Bufferinstance allocated withBufferUtils.static EGLClientPixmapHIcreate(long address)Returns a newEGLClientPixmapHIinstance for the specified memory address.static EGLClientPixmapHI.Buffercreate(long address, int capacity)Create aEGLClientPixmapHI.Bufferinstance at the specified memory.static EGLClientPixmapHIcreateSafe(long address)static EGLClientPixmapHI.BuffercreateSafe(long address, int capacity)intiHeight()height of the buffer in pixels.EGLClientPixmapHIiHeight(int value)Sets the specified value to theiHeight()field.intiStride()stride of the buffer, in pixels.EGLClientPixmapHIiStride(int value)Sets the specified value to theiStride()field.intiWidth()width of the buffer in pixelsEGLClientPixmapHIiWidth(int value)Sets the specified value to theiWidth()field.static EGLClientPixmapHImalloc()Returns a newEGLClientPixmapHIinstance allocated withmemAlloc.static EGLClientPixmapHI.Buffermalloc(int capacity)Returns a newEGLClientPixmapHI.Bufferinstance allocated withmemAlloc.static EGLClientPixmapHI.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newEGLClientPixmapHI.Bufferinstance allocated on the specifiedMemoryStack.static EGLClientPixmapHImalloc(org.lwjgl.system.MemoryStack stack)Returns a newEGLClientPixmapHIinstance allocated on the specifiedMemoryStack.static EGLClientPixmapHImallocStack()Deprecated.static EGLClientPixmapHI.BuffermallocStack(int capacity)Deprecated.static EGLClientPixmapHI.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static EGLClientPixmapHImallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intniHeight(long struct)Unsafe version ofiHeight().static voidniHeight(long struct, int value)Unsafe version ofiHeight.static intniStride(long struct)Unsafe version ofiStride().static voidniStride(long struct, int value)Unsafe version ofiStride.static intniWidth(long struct)Unsafe version ofiWidth().static voidniWidth(long struct, int value)Unsafe version ofiWidth.static java.nio.ByteBuffernpData(long struct, int capacity)Unsafe version ofpData.static voidnpData(long struct, java.nio.ByteBuffer value)Unsafe version ofpData.java.nio.ByteBufferpData(int capacity)EGLClientPixmapHIpData(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto thepData(int)field.EGLClientPixmapHIset(java.nio.ByteBuffer pData, int iWidth, int iHeight, int iStride)Initializes this struct with the specified values.EGLClientPixmapHIset(EGLClientPixmapHI src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
EGLClientPixmapHI
public EGLClientPixmapHI(java.nio.ByteBuffer container)
Creates aEGLClientPixmapHIinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin 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,pDatawill 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 specifiedByteBufferto 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 newEGLClientPixmapHIinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static EGLClientPixmapHI calloc()
Returns a newEGLClientPixmapHIinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static EGLClientPixmapHI create()
Returns a newEGLClientPixmapHIinstance allocated withBufferUtils.
-
create
public static EGLClientPixmapHI create(long address)
Returns a newEGLClientPixmapHIinstance for the specified memory address.
-
createSafe
@Nullable public static EGLClientPixmapHI createSafe(long address)
-
malloc
public static EGLClientPixmapHI.Buffer malloc(int capacity)
Returns a newEGLClientPixmapHI.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static EGLClientPixmapHI.Buffer calloc(int capacity)
Returns a newEGLClientPixmapHI.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static EGLClientPixmapHI.Buffer create(int capacity)
Returns a newEGLClientPixmapHI.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static EGLClientPixmapHI.Buffer create(long address, int capacity)
Create aEGLClientPixmapHI.Bufferinstance 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 newEGLClientPixmapHIinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static EGLClientPixmapHI calloc(org.lwjgl.system.MemoryStack stack)
Returns a newEGLClientPixmapHIinstance allocated on the specifiedMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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
-
-