Package org.lwjgl.opengl
Class GPU_DEVICE
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct GPU_DEVICE {
DWORD cb;
CHAR DeviceName[32];
CHAR DeviceString[128];
DWORD Flags;
RECT rcVirtualScreen;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionGPU_DEVICE(ByteBuffer container) Creates aGPU_DEVICEinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic GPU_DEVICEcalloc()Returns a newGPU_DEVICEinstance allocated withmemCalloc.static GPU_DEVICE.Buffercalloc(int capacity) Returns a newGPU_DEVICE.Bufferinstance allocated withmemCalloc.static GPU_DEVICE.Buffercalloc(int capacity, MemoryStack stack) Returns a newGPU_DEVICE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static GPU_DEVICEcalloc(MemoryStack stack) Returns a newGPU_DEVICEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcb()static GPU_DEVICEcreate()Returns a newGPU_DEVICEinstance allocated withBufferUtils.static GPU_DEVICE.Buffercreate(int capacity) Returns a newGPU_DEVICE.Bufferinstance allocated withBufferUtils.static GPU_DEVICEcreate(long address) Returns a newGPU_DEVICEinstance for the specified memory address.static GPU_DEVICE.Buffercreate(long address, int capacity) Create aGPU_DEVICE.Bufferinstance at the specified memory.static @Nullable GPU_DEVICEcreateSafe(long address) static @Nullable GPU_DEVICE.BuffercreateSafe(long address, int capacity) intFlags()static GPU_DEVICEmalloc()Returns a newGPU_DEVICEinstance allocated withmemAlloc.static GPU_DEVICE.Buffermalloc(int capacity) Returns a newGPU_DEVICE.Bufferinstance allocated withmemAlloc.static GPU_DEVICE.Buffermalloc(int capacity, MemoryStack stack) Returns a newGPU_DEVICE.Bufferinstance allocated on the specifiedMemoryStack.static GPU_DEVICEmalloc(MemoryStack stack) Returns a newGPU_DEVICEinstance allocated on the specifiedMemoryStack.static intncb(long struct) Unsafe version ofcb().static ByteBuffernDeviceName(long struct) Unsafe version ofDeviceName().static StringnDeviceNameString(long struct) Unsafe version ofDeviceNameString().static ByteBuffernDeviceString(long struct) Unsafe version ofDeviceString().static StringnDeviceStringString(long struct) Unsafe version ofDeviceStringString().static intnFlags(long struct) Unsafe version ofFlags().static RECTnrcVirtualScreen(long struct) Unsafe version ofrcVirtualScreen().intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
CB
public static final int CBThe struct member offsets. -
DEVICENAME
public static final int DEVICENAMEThe struct member offsets. -
DEVICESTRING
public static final int DEVICESTRINGThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
RCVIRTUALSCREEN
public static final int RCVIRTUALSCREENThe struct member offsets.
-
-
Constructor Details
-
GPU_DEVICE
Creates aGPU_DEVICEinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<GPU_DEVICE>
-
cb
public int cb()- Returns:
- the value of the
cbfield.
-
DeviceName
- Returns:
- a
ByteBufferview of theDeviceNamefield.
-
DeviceNameString
- Returns:
- the null-terminated string stored in the
DeviceNamefield.
-
DeviceString
- Returns:
- a
ByteBufferview of theDeviceStringfield.
-
DeviceStringString
- Returns:
- the null-terminated string stored in the
DeviceStringfield.
-
Flags
public int Flags()- Returns:
- the value of the
Flagsfield.
-
rcVirtualScreen
- Returns:
- a
RECTview of thercVirtualScreenfield.
-
malloc
Returns a newGPU_DEVICEinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newGPU_DEVICEinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newGPU_DEVICEinstance allocated withBufferUtils. -
create
Returns a newGPU_DEVICEinstance for the specified memory address. -
createSafe
-
malloc
Returns a newGPU_DEVICE.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newGPU_DEVICE.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newGPU_DEVICE.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aGPU_DEVICE.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newGPU_DEVICEinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newGPU_DEVICEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newGPU_DEVICE.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newGPU_DEVICE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ncb
public static int ncb(long struct) Unsafe version ofcb(). -
nDeviceName
Unsafe version ofDeviceName(). -
nDeviceNameString
Unsafe version ofDeviceNameString(). -
nDeviceString
Unsafe version ofDeviceString(). -
nDeviceStringString
Unsafe version ofDeviceStringString(). -
nFlags
public static int nFlags(long struct) Unsafe version ofFlags(). -
nrcVirtualScreen
Unsafe version ofrcVirtualScreen().
-