Package org.lwjgl.system.windows
Class PIXELFORMATDESCRIPTOR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.windows.PIXELFORMATDESCRIPTOR
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class PIXELFORMATDESCRIPTOR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Describes the pixel format of a drawing surface.Layout
struct PIXELFORMATDESCRIPTOR { WORD
nSize()
; WORDnVersion()
; DWORDdwFlags()
; BYTEiPixelType()
; BYTEcColorBits()
; BYTEcRedBits()
; BYTEcRedShift()
; BYTEcGreenBits()
; BYTEcGreenShift()
; BYTEcBlueBits()
; BYTEcBlueShift()
; BYTEcAlphaBits()
; BYTEcAlphaShift()
; BYTEcAccumBits()
; BYTEcAccumRedBits()
; BYTEcAccumGreenBits()
; BYTEcAccumBlueBits()
; BYTEcAccumAlphaBits()
; BYTEcDepthBits()
; BYTEcStencilBits()
; BYTEcAuxBuffers()
; BYTEiLayerType()
; BYTEbReserved()
; DWORDdwLayerMask()
; DWORDdwVisibleMask()
; DWORDdwDamageMask()
; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PIXELFORMATDESCRIPTOR.Buffer
An array ofPIXELFORMATDESCRIPTOR
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
BRESERVED
CACCUMALPHABITS
CACCUMBITS
CACCUMBLUEBITS
CACCUMGREENBITS
CACCUMREDBITS
CALPHABITS
CALPHASHIFT
CAUXBUFFERS
CBLUEBITS
CBLUESHIFT
CCOLORBITS
CDEPTHBITS
CGREENBITS
CGREENSHIFT
CREDBITS
CREDSHIFT
CSTENCILBITS
DWDAMAGEMASK
DWFLAGS
DWLAYERMASK
DWVISIBLEMASK
ILAYERTYPE
IPIXELTYPE
NSIZE
NVERSIONThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description PIXELFORMATDESCRIPTOR(java.nio.ByteBuffer container)
Creates aPIXELFORMATDESCRIPTOR
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 byte
bReserved()
specifies the number of overlay and underlay planes.PIXELFORMATDESCRIPTOR
bReserved(byte value)
Sets the specified value to thebReserved()
field.byte
cAccumAlphaBits()
specifies the number of alpha bitplanes in the accumulation bufferPIXELFORMATDESCRIPTOR
cAccumAlphaBits(byte value)
Sets the specified value to thecAccumAlphaBits()
field.byte
cAccumBits()
specifies the total number of bitplanes in the accumulation bufferPIXELFORMATDESCRIPTOR
cAccumBits(byte value)
Sets the specified value to thecAccumBits()
field.byte
cAccumBlueBits()
specifies the number of blue bitplanes in the accumulation bufferPIXELFORMATDESCRIPTOR
cAccumBlueBits(byte value)
Sets the specified value to thecAccumBlueBits()
field.byte
cAccumGreenBits()
specifies the number of green bitplanes in the accumulation bufferPIXELFORMATDESCRIPTOR
cAccumGreenBits(byte value)
Sets the specified value to thecAccumGreenBits()
field.byte
cAccumRedBits()
specifies the number of red bitplanes in the accumulation bufferPIXELFORMATDESCRIPTOR
cAccumRedBits(byte value)
Sets the specified value to thecAccumRedBits()
field.static PIXELFORMATDESCRIPTOR
calloc()
Returns a newPIXELFORMATDESCRIPTOR
instance allocated withmemCalloc
.static PIXELFORMATDESCRIPTOR.Buffer
calloc(int capacity)
Returns a newPIXELFORMATDESCRIPTOR.Buffer
instance allocated withmemCalloc
.static PIXELFORMATDESCRIPTOR.Buffer
calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newPIXELFORMATDESCRIPTOR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static PIXELFORMATDESCRIPTOR
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newPIXELFORMATDESCRIPTOR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static PIXELFORMATDESCRIPTOR
callocStack()
Deprecated.static PIXELFORMATDESCRIPTOR.Buffer
callocStack(int capacity)
Deprecated.static PIXELFORMATDESCRIPTOR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static PIXELFORMATDESCRIPTOR
callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.byte
cAlphaBits()
specifies the number of alpha bitplanes in each RGBA color buffer.PIXELFORMATDESCRIPTOR
cAlphaBits(byte value)
Sets the specified value to thecAlphaBits()
field.byte
cAlphaShift()
specifies the shift count for alpha bitplanes in each RGBA color buffer.PIXELFORMATDESCRIPTOR
cAlphaShift(byte value)
Sets the specified value to thecAlphaShift()
field.byte
cAuxBuffers()
specifies the number of auxiliary buffers.PIXELFORMATDESCRIPTOR
cAuxBuffers(byte value)
Sets the specified value to thecAuxBuffers()
field.byte
cBlueBits()
specifies the number of blue bitplanes in each RGBA color bufferPIXELFORMATDESCRIPTOR
cBlueBits(byte value)
Sets the specified value to thecBlueBits()
field.byte
cBlueShift()
specifies the shift count for blue bitplanes in each RGBA color bufferPIXELFORMATDESCRIPTOR
cBlueShift(byte value)
Sets the specified value to thecBlueShift()
field.byte
cColorBits()
specifies the number of color bitplanes in each color buffer.PIXELFORMATDESCRIPTOR
cColorBits(byte value)
Sets the specified value to thecColorBits()
field.byte
cDepthBits()
specifies the depth of the depth (z-axis) bufferPIXELFORMATDESCRIPTOR
cDepthBits(byte value)
Sets the specified value to thecDepthBits()
field.byte
cGreenBits()
specifies the number of green bitplanes in each RGBA color bufferPIXELFORMATDESCRIPTOR
cGreenBits(byte value)
Sets the specified value to thecGreenBits()
field.byte
cGreenShift()
specifies the shift count for green bitplanes in each RGBA color bufferPIXELFORMATDESCRIPTOR
cGreenShift(byte value)
Sets the specified value to thecGreenShift()
field.static PIXELFORMATDESCRIPTOR
create()
Returns a newPIXELFORMATDESCRIPTOR
instance allocated withBufferUtils
.static PIXELFORMATDESCRIPTOR.Buffer
create(int capacity)
Returns a newPIXELFORMATDESCRIPTOR.Buffer
instance allocated withBufferUtils
.static PIXELFORMATDESCRIPTOR
create(long address)
Returns a newPIXELFORMATDESCRIPTOR
instance for the specified memory address.static PIXELFORMATDESCRIPTOR.Buffer
create(long address, int capacity)
Create aPIXELFORMATDESCRIPTOR.Buffer
instance at the specified memory.static PIXELFORMATDESCRIPTOR
createSafe(long address)
static PIXELFORMATDESCRIPTOR.Buffer
createSafe(long address, int capacity)
byte
cRedBits()
specifies the number of red bitplanes in each RGBA color bufferPIXELFORMATDESCRIPTOR
cRedBits(byte value)
Sets the specified value to thecRedBits()
field.byte
cRedShift()
specifies the shift count for red bitplanes in each RGBA color bufferPIXELFORMATDESCRIPTOR
cRedShift(byte value)
Sets the specified value to thecRedShift()
field.byte
cStencilBits()
specifies the depth of the stencil bufferPIXELFORMATDESCRIPTOR
cStencilBits(byte value)
Sets the specified value to thecStencilBits()
field.int
dwDamageMask()
Ignored.PIXELFORMATDESCRIPTOR
dwDamageMask(int value)
Sets the specified value to thedwDamageMask()
field.int
dwFlags()
a set of bit flags that specify properties of the pixel bufferPIXELFORMATDESCRIPTOR
dwFlags(int value)
Sets the specified value to thedwFlags()
field.int
dwLayerMask()
Ignored.PIXELFORMATDESCRIPTOR
dwLayerMask(int value)
Sets the specified value to thedwLayerMask()
field.int
dwVisibleMask()
specifies the transparent color or index of an underlay plane.PIXELFORMATDESCRIPTOR
dwVisibleMask(int value)
Sets the specified value to thedwVisibleMask()
field.byte
iLayerType()
Ignored.PIXELFORMATDESCRIPTOR
iLayerType(byte value)
Sets the specified value to theiLayerType()
field.byte
iPixelType()
specifies the type of pixel dataPIXELFORMATDESCRIPTOR
iPixelType(byte value)
Sets the specified value to theiPixelType()
field.static PIXELFORMATDESCRIPTOR
malloc()
Returns a newPIXELFORMATDESCRIPTOR
instance allocated withmemAlloc
.static PIXELFORMATDESCRIPTOR.Buffer
malloc(int capacity)
Returns a newPIXELFORMATDESCRIPTOR.Buffer
instance allocated withmemAlloc
.static PIXELFORMATDESCRIPTOR.Buffer
malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newPIXELFORMATDESCRIPTOR.Buffer
instance allocated on the specifiedMemoryStack
.static PIXELFORMATDESCRIPTOR
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newPIXELFORMATDESCRIPTOR
instance allocated on the specifiedMemoryStack
.static PIXELFORMATDESCRIPTOR
mallocStack()
Deprecated.static PIXELFORMATDESCRIPTOR.Buffer
mallocStack(int capacity)
Deprecated.static PIXELFORMATDESCRIPTOR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static PIXELFORMATDESCRIPTOR
mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.static byte
nbReserved(long struct)
Unsafe version ofbReserved()
.static void
nbReserved(long struct, byte value)
Unsafe version ofbReserved
.static byte
ncAccumAlphaBits(long struct)
Unsafe version ofcAccumAlphaBits()
.static void
ncAccumAlphaBits(long struct, byte value)
Unsafe version ofcAccumAlphaBits
.static byte
ncAccumBits(long struct)
Unsafe version ofcAccumBits()
.static void
ncAccumBits(long struct, byte value)
Unsafe version ofcAccumBits
.static byte
ncAccumBlueBits(long struct)
Unsafe version ofcAccumBlueBits()
.static void
ncAccumBlueBits(long struct, byte value)
Unsafe version ofcAccumBlueBits
.static byte
ncAccumGreenBits(long struct)
Unsafe version ofcAccumGreenBits()
.static void
ncAccumGreenBits(long struct, byte value)
Unsafe version ofcAccumGreenBits
.static byte
ncAccumRedBits(long struct)
Unsafe version ofcAccumRedBits()
.static void
ncAccumRedBits(long struct, byte value)
Unsafe version ofcAccumRedBits
.static byte
ncAlphaBits(long struct)
Unsafe version ofcAlphaBits()
.static void
ncAlphaBits(long struct, byte value)
Unsafe version ofcAlphaBits
.static byte
ncAlphaShift(long struct)
Unsafe version ofcAlphaShift()
.static void
ncAlphaShift(long struct, byte value)
Unsafe version ofcAlphaShift
.static byte
ncAuxBuffers(long struct)
Unsafe version ofcAuxBuffers()
.static void
ncAuxBuffers(long struct, byte value)
Unsafe version ofcAuxBuffers
.static byte
ncBlueBits(long struct)
Unsafe version ofcBlueBits()
.static void
ncBlueBits(long struct, byte value)
Unsafe version ofcBlueBits
.static byte
ncBlueShift(long struct)
Unsafe version ofcBlueShift()
.static void
ncBlueShift(long struct, byte value)
Unsafe version ofcBlueShift
.static byte
ncColorBits(long struct)
Unsafe version ofcColorBits()
.static void
ncColorBits(long struct, byte value)
Unsafe version ofcColorBits
.static byte
ncDepthBits(long struct)
Unsafe version ofcDepthBits()
.static void
ncDepthBits(long struct, byte value)
Unsafe version ofcDepthBits
.static byte
ncGreenBits(long struct)
Unsafe version ofcGreenBits()
.static void
ncGreenBits(long struct, byte value)
Unsafe version ofcGreenBits
.static byte
ncGreenShift(long struct)
Unsafe version ofcGreenShift()
.static void
ncGreenShift(long struct, byte value)
Unsafe version ofcGreenShift
.static byte
ncRedBits(long struct)
Unsafe version ofcRedBits()
.static void
ncRedBits(long struct, byte value)
Unsafe version ofcRedBits
.static byte
ncRedShift(long struct)
Unsafe version ofcRedShift()
.static void
ncRedShift(long struct, byte value)
Unsafe version ofcRedShift
.static byte
ncStencilBits(long struct)
Unsafe version ofcStencilBits()
.static void
ncStencilBits(long struct, byte value)
Unsafe version ofcStencilBits
.static int
ndwDamageMask(long struct)
Unsafe version ofdwDamageMask()
.static void
ndwDamageMask(long struct, int value)
Unsafe version ofdwDamageMask
.static int
ndwFlags(long struct)
Unsafe version ofdwFlags()
.static void
ndwFlags(long struct, int value)
Unsafe version ofdwFlags
.static int
ndwLayerMask(long struct)
Unsafe version ofdwLayerMask()
.static void
ndwLayerMask(long struct, int value)
Unsafe version ofdwLayerMask
.static int
ndwVisibleMask(long struct)
Unsafe version ofdwVisibleMask()
.static void
ndwVisibleMask(long struct, int value)
Unsafe version ofdwVisibleMask
.static byte
niLayerType(long struct)
Unsafe version ofiLayerType()
.static void
niLayerType(long struct, byte value)
Unsafe version ofiLayerType
.static byte
niPixelType(long struct)
Unsafe version ofiPixelType()
.static void
niPixelType(long struct, byte value)
Unsafe version ofiPixelType
.static short
nnSize(long struct)
Unsafe version ofnSize()
.static void
nnSize(long struct, short value)
Unsafe version ofnSize
.static short
nnVersion(long struct)
Unsafe version ofnVersion()
.static void
nnVersion(long struct, short value)
Unsafe version ofnVersion
.short
nSize()
specifies the size of this data structure.PIXELFORMATDESCRIPTOR
nSize(short value)
Sets the specified value to thenSize()
field.short
nVersion()
specifies the version of this data structure.PIXELFORMATDESCRIPTOR
nVersion(short value)
Sets the specified value to thenVersion()
field.PIXELFORMATDESCRIPTOR
set(short nSize, short nVersion, int dwFlags, byte iPixelType, byte cColorBits, byte cRedBits, byte cRedShift, byte cGreenBits, byte cGreenShift, byte cBlueBits, byte cBlueShift, byte cAlphaBits, byte cAlphaShift, byte cAccumBits, byte cAccumRedBits, byte cAccumGreenBits, byte cAccumBlueBits, byte cAccumAlphaBits, byte cDepthBits, byte cStencilBits, byte cAuxBuffers, byte iLayerType, byte bReserved, int dwLayerMask, int dwVisibleMask, int dwDamageMask)
Initializes this struct with the specified values.PIXELFORMATDESCRIPTOR
set(PIXELFORMATDESCRIPTOR src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
NSIZE, NVERSION, DWFLAGS, IPIXELTYPE, CCOLORBITS, CREDBITS, CREDSHIFT, CGREENBITS, CGREENSHIFT, CBLUEBITS, CBLUESHIFT, CALPHABITS, CALPHASHIFT, CACCUMBITS, CACCUMREDBITS, CACCUMGREENBITS, CACCUMBLUEBITS, CACCUMALPHABITS, CDEPTHBITS, CSTENCILBITS, CAUXBUFFERS, ILAYERTYPE, BRESERVED, DWLAYERMASK, DWVISIBLEMASK, DWDAMAGEMASK
The struct member offsets.
-
-
Constructor Detail
-
PIXELFORMATDESCRIPTOR
public PIXELFORMATDESCRIPTOR(java.nio.ByteBuffer container)
Creates aPIXELFORMATDESCRIPTOR
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
-
nSize
public short nSize()
specifies the size of this data structure. This value should be set toSIZEOF
.
-
nVersion
public short nVersion()
specifies the version of this data structure. This value should be set to 1
-
dwFlags
public int dwFlags()
a set of bit flags that specify properties of the pixel buffer
-
iPixelType
public byte iPixelType()
specifies the type of pixel data
-
cColorBits
public byte cColorBits()
specifies the number of color bitplanes in each color buffer. For RGBA pixel types, it is the size of the color buffer, excluding the alpha bitplanes. For color-index pixels, it is the size of the color-index buffer.
-
cRedBits
public byte cRedBits()
specifies the number of red bitplanes in each RGBA color buffer
-
cRedShift
public byte cRedShift()
specifies the shift count for red bitplanes in each RGBA color buffer
-
cGreenBits
public byte cGreenBits()
specifies the number of green bitplanes in each RGBA color buffer
-
cGreenShift
public byte cGreenShift()
specifies the shift count for green bitplanes in each RGBA color buffer
-
cBlueBits
public byte cBlueBits()
specifies the number of blue bitplanes in each RGBA color buffer
-
cBlueShift
public byte cBlueShift()
specifies the shift count for blue bitplanes in each RGBA color buffer
-
cAlphaBits
public byte cAlphaBits()
specifies the number of alpha bitplanes in each RGBA color buffer. Alpha bitplanes are not supported
-
cAlphaShift
public byte cAlphaShift()
specifies the shift count for alpha bitplanes in each RGBA color buffer. Alpha bitplanes are not supported
-
cAccumBits
public byte cAccumBits()
specifies the total number of bitplanes in the accumulation buffer
-
cAccumRedBits
public byte cAccumRedBits()
specifies the number of red bitplanes in the accumulation buffer
-
cAccumGreenBits
public byte cAccumGreenBits()
specifies the number of green bitplanes in the accumulation buffer
-
cAccumBlueBits
public byte cAccumBlueBits()
specifies the number of blue bitplanes in the accumulation buffer
-
cAccumAlphaBits
public byte cAccumAlphaBits()
specifies the number of alpha bitplanes in the accumulation buffer
-
cDepthBits
public byte cDepthBits()
specifies the depth of the depth (z-axis) buffer
-
cStencilBits
public byte cStencilBits()
specifies the depth of the stencil buffer
-
cAuxBuffers
public byte cAuxBuffers()
specifies the number of auxiliary buffers. Auxiliary buffers are not supported
-
iLayerType
public byte iLayerType()
Ignored. Earlier implementations of OpenGL used this member, but it is no longer used.
-
bReserved
public byte bReserved()
specifies the number of overlay and underlay planes. Bits 0 through 3 specify up to 15 overlay planes and bits 4 through 7 specify up to 15 underlay planes
-
dwLayerMask
public int dwLayerMask()
Ignored. Earlier implementations of OpenGL used this member, but it is no longer used.
-
dwVisibleMask
public int dwVisibleMask()
specifies the transparent color or index of an underlay plane. When the pixel type is RGBA,dwVisibleMask
is a transparent RGB color value. When the pixel type is color index, it is a transparent index value.
-
dwDamageMask
public int dwDamageMask()
Ignored. Earlier implementations of OpenGL used this member, but it is no longer used.
-
nSize
public PIXELFORMATDESCRIPTOR nSize(short value)
Sets the specified value to thenSize()
field.
-
nVersion
public PIXELFORMATDESCRIPTOR nVersion(short value)
Sets the specified value to thenVersion()
field.
-
dwFlags
public PIXELFORMATDESCRIPTOR dwFlags(int value)
Sets the specified value to thedwFlags()
field.
-
iPixelType
public PIXELFORMATDESCRIPTOR iPixelType(byte value)
Sets the specified value to theiPixelType()
field.
-
cColorBits
public PIXELFORMATDESCRIPTOR cColorBits(byte value)
Sets the specified value to thecColorBits()
field.
-
cRedBits
public PIXELFORMATDESCRIPTOR cRedBits(byte value)
Sets the specified value to thecRedBits()
field.
-
cRedShift
public PIXELFORMATDESCRIPTOR cRedShift(byte value)
Sets the specified value to thecRedShift()
field.
-
cGreenBits
public PIXELFORMATDESCRIPTOR cGreenBits(byte value)
Sets the specified value to thecGreenBits()
field.
-
cGreenShift
public PIXELFORMATDESCRIPTOR cGreenShift(byte value)
Sets the specified value to thecGreenShift()
field.
-
cBlueBits
public PIXELFORMATDESCRIPTOR cBlueBits(byte value)
Sets the specified value to thecBlueBits()
field.
-
cBlueShift
public PIXELFORMATDESCRIPTOR cBlueShift(byte value)
Sets the specified value to thecBlueShift()
field.
-
cAlphaBits
public PIXELFORMATDESCRIPTOR cAlphaBits(byte value)
Sets the specified value to thecAlphaBits()
field.
-
cAlphaShift
public PIXELFORMATDESCRIPTOR cAlphaShift(byte value)
Sets the specified value to thecAlphaShift()
field.
-
cAccumBits
public PIXELFORMATDESCRIPTOR cAccumBits(byte value)
Sets the specified value to thecAccumBits()
field.
-
cAccumRedBits
public PIXELFORMATDESCRIPTOR cAccumRedBits(byte value)
Sets the specified value to thecAccumRedBits()
field.
-
cAccumGreenBits
public PIXELFORMATDESCRIPTOR cAccumGreenBits(byte value)
Sets the specified value to thecAccumGreenBits()
field.
-
cAccumBlueBits
public PIXELFORMATDESCRIPTOR cAccumBlueBits(byte value)
Sets the specified value to thecAccumBlueBits()
field.
-
cAccumAlphaBits
public PIXELFORMATDESCRIPTOR cAccumAlphaBits(byte value)
Sets the specified value to thecAccumAlphaBits()
field.
-
cDepthBits
public PIXELFORMATDESCRIPTOR cDepthBits(byte value)
Sets the specified value to thecDepthBits()
field.
-
cStencilBits
public PIXELFORMATDESCRIPTOR cStencilBits(byte value)
Sets the specified value to thecStencilBits()
field.
-
cAuxBuffers
public PIXELFORMATDESCRIPTOR cAuxBuffers(byte value)
Sets the specified value to thecAuxBuffers()
field.
-
iLayerType
public PIXELFORMATDESCRIPTOR iLayerType(byte value)
Sets the specified value to theiLayerType()
field.
-
bReserved
public PIXELFORMATDESCRIPTOR bReserved(byte value)
Sets the specified value to thebReserved()
field.
-
dwLayerMask
public PIXELFORMATDESCRIPTOR dwLayerMask(int value)
Sets the specified value to thedwLayerMask()
field.
-
dwVisibleMask
public PIXELFORMATDESCRIPTOR dwVisibleMask(int value)
Sets the specified value to thedwVisibleMask()
field.
-
dwDamageMask
public PIXELFORMATDESCRIPTOR dwDamageMask(int value)
Sets the specified value to thedwDamageMask()
field.
-
set
public PIXELFORMATDESCRIPTOR set(short nSize, short nVersion, int dwFlags, byte iPixelType, byte cColorBits, byte cRedBits, byte cRedShift, byte cGreenBits, byte cGreenShift, byte cBlueBits, byte cBlueShift, byte cAlphaBits, byte cAlphaShift, byte cAccumBits, byte cAccumRedBits, byte cAccumGreenBits, byte cAccumBlueBits, byte cAccumAlphaBits, byte cDepthBits, byte cStencilBits, byte cAuxBuffers, byte iLayerType, byte bReserved, int dwLayerMask, int dwVisibleMask, int dwDamageMask)
Initializes this struct with the specified values.
-
set
public PIXELFORMATDESCRIPTOR set(PIXELFORMATDESCRIPTOR src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static PIXELFORMATDESCRIPTOR malloc()
Returns a newPIXELFORMATDESCRIPTOR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static PIXELFORMATDESCRIPTOR calloc()
Returns a newPIXELFORMATDESCRIPTOR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static PIXELFORMATDESCRIPTOR create()
Returns a newPIXELFORMATDESCRIPTOR
instance allocated withBufferUtils
.
-
create
public static PIXELFORMATDESCRIPTOR create(long address)
Returns a newPIXELFORMATDESCRIPTOR
instance for the specified memory address.
-
createSafe
@Nullable public static PIXELFORMATDESCRIPTOR createSafe(long address)
-
malloc
public static PIXELFORMATDESCRIPTOR.Buffer malloc(int capacity)
Returns a newPIXELFORMATDESCRIPTOR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static PIXELFORMATDESCRIPTOR.Buffer calloc(int capacity)
Returns a newPIXELFORMATDESCRIPTOR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static PIXELFORMATDESCRIPTOR.Buffer create(int capacity)
Returns a newPIXELFORMATDESCRIPTOR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static PIXELFORMATDESCRIPTOR.Buffer create(long address, int capacity)
Create aPIXELFORMATDESCRIPTOR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static PIXELFORMATDESCRIPTOR.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static PIXELFORMATDESCRIPTOR mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static PIXELFORMATDESCRIPTOR callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static PIXELFORMATDESCRIPTOR mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static PIXELFORMATDESCRIPTOR callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static PIXELFORMATDESCRIPTOR.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead.
-
callocStack
@Deprecated public static PIXELFORMATDESCRIPTOR.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead.
-
mallocStack
@Deprecated public static PIXELFORMATDESCRIPTOR.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 PIXELFORMATDESCRIPTOR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead.
-
malloc
public static PIXELFORMATDESCRIPTOR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newPIXELFORMATDESCRIPTOR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static PIXELFORMATDESCRIPTOR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newPIXELFORMATDESCRIPTOR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static PIXELFORMATDESCRIPTOR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newPIXELFORMATDESCRIPTOR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
calloc
public static PIXELFORMATDESCRIPTOR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newPIXELFORMATDESCRIPTOR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nnSize
public static short nnSize(long struct)
Unsafe version ofnSize()
.
-
nnVersion
public static short nnVersion(long struct)
Unsafe version ofnVersion()
.
-
ndwFlags
public static int ndwFlags(long struct)
Unsafe version ofdwFlags()
.
-
niPixelType
public static byte niPixelType(long struct)
Unsafe version ofiPixelType()
.
-
ncColorBits
public static byte ncColorBits(long struct)
Unsafe version ofcColorBits()
.
-
ncRedBits
public static byte ncRedBits(long struct)
Unsafe version ofcRedBits()
.
-
ncRedShift
public static byte ncRedShift(long struct)
Unsafe version ofcRedShift()
.
-
ncGreenBits
public static byte ncGreenBits(long struct)
Unsafe version ofcGreenBits()
.
-
ncGreenShift
public static byte ncGreenShift(long struct)
Unsafe version ofcGreenShift()
.
-
ncBlueBits
public static byte ncBlueBits(long struct)
Unsafe version ofcBlueBits()
.
-
ncBlueShift
public static byte ncBlueShift(long struct)
Unsafe version ofcBlueShift()
.
-
ncAlphaBits
public static byte ncAlphaBits(long struct)
Unsafe version ofcAlphaBits()
.
-
ncAlphaShift
public static byte ncAlphaShift(long struct)
Unsafe version ofcAlphaShift()
.
-
ncAccumBits
public static byte ncAccumBits(long struct)
Unsafe version ofcAccumBits()
.
-
ncAccumRedBits
public static byte ncAccumRedBits(long struct)
Unsafe version ofcAccumRedBits()
.
-
ncAccumGreenBits
public static byte ncAccumGreenBits(long struct)
Unsafe version ofcAccumGreenBits()
.
-
ncAccumBlueBits
public static byte ncAccumBlueBits(long struct)
Unsafe version ofcAccumBlueBits()
.
-
ncAccumAlphaBits
public static byte ncAccumAlphaBits(long struct)
Unsafe version ofcAccumAlphaBits()
.
-
ncDepthBits
public static byte ncDepthBits(long struct)
Unsafe version ofcDepthBits()
.
-
ncStencilBits
public static byte ncStencilBits(long struct)
Unsafe version ofcStencilBits()
.
-
ncAuxBuffers
public static byte ncAuxBuffers(long struct)
Unsafe version ofcAuxBuffers()
.
-
niLayerType
public static byte niLayerType(long struct)
Unsafe version ofiLayerType()
.
-
nbReserved
public static byte nbReserved(long struct)
Unsafe version ofbReserved()
.
-
ndwLayerMask
public static int ndwLayerMask(long struct)
Unsafe version ofdwLayerMask()
.
-
ndwVisibleMask
public static int ndwVisibleMask(long struct)
Unsafe version ofdwVisibleMask()
.
-
ndwDamageMask
public static int ndwDamageMask(long struct)
Unsafe version ofdwDamageMask()
.
-
nnSize
public static void nnSize(long struct, short value)
Unsafe version ofnSize
.
-
nnVersion
public static void nnVersion(long struct, short value)
Unsafe version ofnVersion
.
-
ndwFlags
public static void ndwFlags(long struct, int value)
Unsafe version ofdwFlags
.
-
niPixelType
public static void niPixelType(long struct, byte value)
Unsafe version ofiPixelType
.
-
ncColorBits
public static void ncColorBits(long struct, byte value)
Unsafe version ofcColorBits
.
-
ncRedBits
public static void ncRedBits(long struct, byte value)
Unsafe version ofcRedBits
.
-
ncRedShift
public static void ncRedShift(long struct, byte value)
Unsafe version ofcRedShift
.
-
ncGreenBits
public static void ncGreenBits(long struct, byte value)
Unsafe version ofcGreenBits
.
-
ncGreenShift
public static void ncGreenShift(long struct, byte value)
Unsafe version ofcGreenShift
.
-
ncBlueBits
public static void ncBlueBits(long struct, byte value)
Unsafe version ofcBlueBits
.
-
ncBlueShift
public static void ncBlueShift(long struct, byte value)
Unsafe version ofcBlueShift
.
-
ncAlphaBits
public static void ncAlphaBits(long struct, byte value)
Unsafe version ofcAlphaBits
.
-
ncAlphaShift
public static void ncAlphaShift(long struct, byte value)
Unsafe version ofcAlphaShift
.
-
ncAccumBits
public static void ncAccumBits(long struct, byte value)
Unsafe version ofcAccumBits
.
-
ncAccumRedBits
public static void ncAccumRedBits(long struct, byte value)
Unsafe version ofcAccumRedBits
.
-
ncAccumGreenBits
public static void ncAccumGreenBits(long struct, byte value)
Unsafe version ofcAccumGreenBits
.
-
ncAccumBlueBits
public static void ncAccumBlueBits(long struct, byte value)
Unsafe version ofcAccumBlueBits
.
-
ncAccumAlphaBits
public static void ncAccumAlphaBits(long struct, byte value)
Unsafe version ofcAccumAlphaBits
.
-
ncDepthBits
public static void ncDepthBits(long struct, byte value)
Unsafe version ofcDepthBits
.
-
ncStencilBits
public static void ncStencilBits(long struct, byte value)
Unsafe version ofcStencilBits
.
-
ncAuxBuffers
public static void ncAuxBuffers(long struct, byte value)
Unsafe version ofcAuxBuffers
.
-
niLayerType
public static void niLayerType(long struct, byte value)
Unsafe version ofiLayerType
.
-
nbReserved
public static void nbReserved(long struct, byte value)
Unsafe version ofbReserved
.
-
ndwLayerMask
public static void ndwLayerMask(long struct, int value)
Unsafe version ofdwLayerMask
.
-
ndwVisibleMask
public static void ndwVisibleMask(long struct, int value)
Unsafe version ofdwVisibleMask
.
-
ndwDamageMask
public static void ndwDamageMask(long struct, int value)
Unsafe version ofdwDamageMask
.
-
-