Package org.lwjgl.openvr
Class VREventScreenshot
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VREventScreenshot
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VREventScreenshot extends org.lwjgl.system.Struct
Layout
struct VREvent_Screenshot_t { uint32_t handle; uint32_t type; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VREventScreenshot.Buffer
An array ofVREventScreenshot
structs.
-
Constructor Summary
Constructors Constructor Description VREventScreenshot(java.nio.ByteBuffer container)
Creates aVREventScreenshot
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VREventScreenshot
create(long address)
Returns a newVREventScreenshot
instance for the specified memory address.static VREventScreenshot.Buffer
create(long address, int capacity)
Create aVREventScreenshot.Buffer
instance at the specified memory.static VREventScreenshot
createSafe(long address)
static VREventScreenshot.Buffer
createSafe(long address, int capacity)
int
handle()
Returns the value of thehandle
field.static int
nhandle(long struct)
Unsafe version ofhandle()
.static int
ntype(long struct)
Unsafe version oftype()
.int
sizeof()
int
type()
Returns the value of thetype
field.
-
-
-
Constructor Detail
-
VREventScreenshot
public VREventScreenshot(java.nio.ByteBuffer container)
Creates aVREventScreenshot
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
-
handle
public int handle()
Returns the value of thehandle
field.
-
type
public int type()
Returns the value of thetype
field.
-
create
public static VREventScreenshot create(long address)
Returns a newVREventScreenshot
instance for the specified memory address.
-
createSafe
@Nullable public static VREventScreenshot createSafe(long address)
-
create
public static VREventScreenshot.Buffer create(long address, int capacity)
Create aVREventScreenshot.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VREventScreenshot.Buffer createSafe(long address, int capacity)
-
nhandle
public static int nhandle(long struct)
Unsafe version ofhandle()
.
-
ntype
public static int ntype(long struct)
Unsafe version oftype()
.
-
-