Package org.lwjgl.opengl
Class GPU_DEVICE
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.opengl.GPU_DEVICE
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class GPU_DEVICE extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceReceives information about the display device specified by thedeviceIndexparameter of theEnumGpuDevicesNVfunction.Layout
struct GPU_DEVICE { DWORDcb(); CHARDeviceName()[32]; CHARDeviceString()[128]; DWORDFlags();RECTrcVirtualScreen(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGPU_DEVICE.BufferAn array ofGPU_DEVICEstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCB
DEVICENAME
DEVICESTRING
FLAGS
RCVIRTUALSCREENThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description GPU_DEVICE(java.nio.ByteBuffer container)Creates aGPU_DEVICEinstance 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 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, org.lwjgl.system.MemoryStack stack)Returns a newGPU_DEVICE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static GPU_DEVICEcalloc(org.lwjgl.system.MemoryStack stack)Returns a newGPU_DEVICEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static GPU_DEVICEcallocStack()Deprecated.static GPU_DEVICE.BuffercallocStack(int capacity)Deprecated.static GPU_DEVICE.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static GPU_DEVICEcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intcb()the size of theGPU_DEVICEstructure.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 GPU_DEVICEcreateSafe(long address)static GPU_DEVICE.BuffercreateSafe(long address, int capacity)java.nio.ByteBufferDeviceName()a string identifying the display device name.java.lang.StringDeviceNameString()a string identifying the display device name.java.nio.ByteBufferDeviceString()a string describing the GPU for this display device.java.lang.StringDeviceStringString()a string describing the GPU for this display device.intFlags()indicates the state of the display devicestatic 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, org.lwjgl.system.MemoryStack stack)Returns a newGPU_DEVICE.Bufferinstance allocated on the specifiedMemoryStack.static GPU_DEVICEmalloc(org.lwjgl.system.MemoryStack stack)Returns a newGPU_DEVICEinstance allocated on the specifiedMemoryStack.static GPU_DEVICEmallocStack()Deprecated.static GPU_DEVICE.BuffermallocStack(int capacity)Deprecated.static GPU_DEVICE.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static GPU_DEVICEmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intncb(long struct)Unsafe version ofcb().static java.nio.ByteBuffernDeviceName(long struct)Unsafe version ofDeviceName().static java.lang.StringnDeviceNameString(long struct)Unsafe version ofDeviceNameString().static java.nio.ByteBuffernDeviceString(long struct)Unsafe version ofDeviceString().static java.lang.StringnDeviceStringString(long struct)Unsafe version ofDeviceStringString().static intnFlags(long struct)Unsafe version ofFlags().static org.lwjgl.system.windows.RECTnrcVirtualScreen(long struct)Unsafe version ofrcVirtualScreen().org.lwjgl.system.windows.RECTrcVirtualScreen()specifies the display device rectangle, in virtual screen coordinates.intsizeof()
-
-
-
Constructor Detail
-
GPU_DEVICE
public GPU_DEVICE(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
cb
public int cb()
the size of theGPU_DEVICEstructure. Before callingEnumGpuDevicesNV, setcbto the size, in bytes, ofGPU_DEVICE.
-
DeviceName, DeviceNameString
public java.nio.ByteBuffer DeviceName() public java.lang.String DeviceNameString()
a string identifying the display device name. This will be the same string as stored in theDeviceNamefield of theDISPLAY_DEVICEstructure, which is filled in byEnumDisplayDevices.
-
DeviceString, DeviceStringString
public java.nio.ByteBuffer DeviceString() public java.lang.String DeviceStringString()
a string describing the GPU for this display device. It is the same string as stored in theDeviceStringfield in theDISPLAY_DEVICEstructure that is filled in byEnumDisplayDeviceswhen it describes a display adapter (and not a monitor).
-
Flags
public int Flags()
indicates the state of the display device
-
rcVirtualScreen
public org.lwjgl.system.windows.RECT rcVirtualScreen()
specifies the display device rectangle, in virtual screen coordinates. The value ofrcVirtualScreenis undefined if the device is not part of the desktop, i.e.DISPLAY_DEVICE_ATTACHED_TO_DESKTOPis not set in theFlagsfield.
-
malloc
public static GPU_DEVICE malloc()
Returns a newGPU_DEVICEinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static GPU_DEVICE calloc()
Returns a newGPU_DEVICEinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static GPU_DEVICE create()
Returns a newGPU_DEVICEinstance allocated withBufferUtils.
-
create
public static GPU_DEVICE create(long address)
Returns a newGPU_DEVICEinstance for the specified memory address.
-
createSafe
@Nullable public static GPU_DEVICE createSafe(long address)
-
malloc
public static GPU_DEVICE.Buffer malloc(int capacity)
Returns a newGPU_DEVICE.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static GPU_DEVICE.Buffer calloc(int capacity)
Returns a newGPU_DEVICE.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static GPU_DEVICE.Buffer create(int capacity)
Returns a newGPU_DEVICE.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static GPU_DEVICE.Buffer create(long address, int capacity)
Create aGPU_DEVICE.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static GPU_DEVICE.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static GPU_DEVICE mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static GPU_DEVICE callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static GPU_DEVICE mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static GPU_DEVICE callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static GPU_DEVICE.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static GPU_DEVICE.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static GPU_DEVICE.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 GPU_DEVICE.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static GPU_DEVICE malloc(org.lwjgl.system.MemoryStack stack)
Returns a newGPU_DEVICEinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static GPU_DEVICE calloc(org.lwjgl.system.MemoryStack stack)
Returns a newGPU_DEVICEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static GPU_DEVICE.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newGPU_DEVICE.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static GPU_DEVICE.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newGPU_DEVICE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ncb
public static int ncb(long struct)
Unsafe version ofcb().
-
nDeviceName
public static java.nio.ByteBuffer nDeviceName(long struct)
Unsafe version ofDeviceName().
-
nDeviceNameString
public static java.lang.String nDeviceNameString(long struct)
Unsafe version ofDeviceNameString().
-
nDeviceString
public static java.nio.ByteBuffer nDeviceString(long struct)
Unsafe version ofDeviceString().
-
nDeviceStringString
public static java.lang.String nDeviceStringString(long struct)
Unsafe version ofDeviceStringString().
-
nFlags
public static int nFlags(long struct)
Unsafe version ofFlags().
-
nrcVirtualScreen
public static org.lwjgl.system.windows.RECT nrcVirtualScreen(long struct)
Unsafe version ofrcVirtualScreen().
-
-