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, NativeResource, Pointer
public class EGLClientPixmapHI extends Struct
Specifies the width, height, stride, format and memory pointer of the pixmap to be used by the functionCreatePixmapSurfaceHIto 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,pDatawill 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 and Description static classEGLClientPixmapHI.BufferAn array ofEGLClientPixmapHIstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 Modifier and Type Method and Description static EGLClientPixmapHIcalloc()Returns a newEGLClientPixmapHIinstance allocated withmemCalloc.static EGLClientPixmapHI.Buffercalloc(int capacity)Returns a newEGLClientPixmapHI.Bufferinstance allocated withmemCalloc.static EGLClientPixmapHIcallocStack()Returns a newEGLClientPixmapHIinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static EGLClientPixmapHI.BuffercallocStack(int capacity)Returns a newEGLClientPixmapHI.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static EGLClientPixmapHI.BuffercallocStack(int capacity, MemoryStack stack)Returns a newEGLClientPixmapHI.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EGLClientPixmapHIcallocStack(MemoryStack stack)Returns a newEGLClientPixmapHIinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 ornullif the address isNULL.static EGLClientPixmapHI.Buffercreate(long address, int capacity)Create aEGLClientPixmapHI.Bufferinstance at the specified memory.intiHeight()Returns the value of theiHeightfield.EGLClientPixmapHIiHeight(int value)Sets the specified value to theiHeightfield.intiStride()Returns the value of theiStridefield.EGLClientPixmapHIiStride(int value)Sets the specified value to theiStridefield.intiWidth()Returns the value of theiWidthfield.EGLClientPixmapHIiWidth(int value)Sets the specified value to theiWidthfield.static EGLClientPixmapHImalloc()Returns a newEGLClientPixmapHIinstance allocated withmemAlloc.static EGLClientPixmapHI.Buffermalloc(int capacity)Returns a newEGLClientPixmapHI.Bufferinstance allocated withmemAlloc.static EGLClientPixmapHImallocStack()Returns a newEGLClientPixmapHIinstance allocated on the thread-localMemoryStack.static EGLClientPixmapHI.BuffermallocStack(int capacity)Returns a newEGLClientPixmapHI.Bufferinstance allocated on the thread-localMemoryStack.static EGLClientPixmapHI.BuffermallocStack(int capacity, MemoryStack stack)Returns a newEGLClientPixmapHI.Bufferinstance allocated on the specifiedMemoryStack.static EGLClientPixmapHImallocStack(MemoryStack stack)Returns a newEGLClientPixmapHIinstance allocated on the specifiedMemoryStack.EGLClientPixmapHInset(long struct)Unsafe version ofset.EGLClientPixmapHIpData(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto thepDatafield.java.nio.ByteBufferpData(int capacity)Returns aByteBufferview of the data pointed to by thepDatafield.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()Returns thesizeof(struct).static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)CallsEGLClientPixmapHI.validate(long)for each struct contained in the specified struct array.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:StructReturns thesizeof(struct).
-
pData
public java.nio.ByteBuffer pData(int capacity)
Returns aByteBufferview of the data pointed to by thepDatafield.- Parameters:
capacity- the number of elements in the returned buffer
-
iWidth
public int iWidth()
Returns the value of theiWidthfield.
-
iHeight
public int iHeight()
Returns the value of theiHeightfield.
-
iStride
public int iStride()
Returns the value of theiStridefield.
-
pData
public EGLClientPixmapHI pData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto thepDatafield.
-
iWidth
public EGLClientPixmapHI iWidth(int value)
Sets the specified value to theiWidthfield.
-
iHeight
public EGLClientPixmapHI iHeight(int value)
Sets the specified value to theiHeightfield.
-
iStride
public EGLClientPixmapHI iStride(int value)
Sets the specified value to theiStridefield.
-
set
public EGLClientPixmapHI set(java.nio.ByteBuffer pData, int iWidth, int iHeight, int iStride)
Initializes this struct with the specified values.
-
nset
public EGLClientPixmapHI nset(long struct)
Unsafe version ofset.
-
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 ornullif the address isNULL.
-
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
-
mallocStack
public static EGLClientPixmapHI mallocStack()
Returns a newEGLClientPixmapHIinstance allocated on the thread-localMemoryStack.
-
callocStack
public static EGLClientPixmapHI callocStack()
Returns a newEGLClientPixmapHIinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static EGLClientPixmapHI mallocStack(MemoryStack stack)
Returns a newEGLClientPixmapHIinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static EGLClientPixmapHI callocStack(MemoryStack stack)
Returns a newEGLClientPixmapHIinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static EGLClientPixmapHI.Buffer callocStack(int capacity)
Returns a newEGLClientPixmapHI.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static EGLClientPixmapHI.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newEGLClientPixmapHI.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static EGLClientPixmapHI.Buffer callocStack(int capacity, 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
-
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)CallsEGLClientPixmapHI.validate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-