public static boolean glBindVideoCaptureDeviceNV(int video_slot,
After successfully locking a video capture device, use this method to bind it
to the capture slot specified in the current context. This method is the cross-
platform equivalent of glXBindVideoCaptureDeviceNV and wglBindVideoCaptureDeviceNV.
video_slot - the video slot
device - the video capture device
true if the binding was successful
public static int glEnumerateVideoCaptureDevicesNV(java.nio.LongBuffer devices)
Enumerate the available video capture devices. This method is the cross-platform
equivalent of glXEnumerateVideoCaptureDevicesNV and wglEnumerateVideoCaptureDevicesNV.
Since they are not really compatible, this method works like the WGL version. That is,
you first call it with a null devices buffer, get the number of devices, then call it
again with an appropriately sized buffer.
devices - the buffer to store devices in
the number of available video capture devices
public static boolean glLockVideoCaptureDeviceNV(long device)
To lock a video capture device to a display connection, use this method.
Before using a video capture device, it must be locked. Once a
video capture device is locked by a process, no other process can
lock a video capture device with the same unique ID until the lock
is released or the process ends.
device - the device to lock
true if the lock was successful
public static boolean glQueryVideoCaptureDeviceNV(long device,
Use this method to query the unique ID of the physical device backing a
video capture device handle.
device - the device
attribute - the attribute to query
value - the buffer to store the value in
true if the query was successful
public static boolean glReleaseVideoCaptureDeviceNV(long device)
Use this method when finished capturing data on a locked video capture device
to unlock it.