This extension allows OpenGL to directly access DirectX buffers and surfaces. A DirectX vertex buffer may be shared as an OpenGL buffer object and a DirectX surface may be shared as an OpenGL texture or renderbuffer object.
Requires OpenGL 2..
| Modifier and Type | Field and Description |
|---|---|
| public static final int | WGL_ACCESS_READ_ONLY_NV
Accepted by the |
| public static final int | WGL_ACCESS_READ_WRITE_NV
Accepted by the |
| public static final int | WGL_ACCESS_WRITE_DISCARD_NV
Accepted by the |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description | |||
|---|---|---|---|---|
| public static int | nwglDXLockObjectsNV(long device, int
the number of objects to lock count, long objects)Unsafe version of: | |||
| public static int | nwglDXUnlockObjectsNV(long device, int
the number of objects to unlock count, long objects)Unsafe version of: | |||
| public static boolean | ||||
| public static boolean | wglDXLockObjectsNV(long
the GL/DirectX interop device handle device, PointerBuffer an array of objects)count interop objectsBefore a GL object which is associated with a DirectX resource may be used, it must be locked with this function. | |||
| public static boolean | wglDXObjectAccessNV(long
the GL/DirectX interop object object, int the new access mode. One of: access)
Modifies the access mode of an interop object, if a different access mode is required after the object has been registered. | |||
| public static long | wglDXOpenDeviceNV(long
a pointer to a supported Direct3D device object dxDevice)Prepares a DirectX device for interoperability and returns a handle to a GL/DirectX interop device. | |||
| public static long | wglDXRegisterObjectNV(long
a GL/DirectX interop device handle, as returned by device, long DXOpenDeviceNVa pointer to a DirectX resource to be registered with the GL dxResource, int the GL object name to be assigned to the DirectX resource in the namespace of the objects identified by name, int type in the current GL contextthe GL object type that will map to the DirectX resource being shared type, int indicates the intended usage of the resource in GL. One of: access)
Prepares a DirectX object for use by the GL and returns a handle to a GL/DirectX interop object. | |||
| public static boolean | wglDXSetResourceShareHandleNV(long
a pointer to the DirectX resource that will be shared dxObject, long the share handle that the OS generated for the resource shareHandle)
| |||
| public static boolean | wglDXUnlockObjectsNV(long
the GL/DirectX interop device handle device, PointerBuffer an array of objects)count interop objectsReturn control of an object to DirectX. | |||
| public static boolean |
| WGL_ACCESS_READ_ONLY_NV | back to summary |
|---|---|
| public static final int WGL_ACCESS_READ_ONLY_NV Accepted by the | |
| WGL_ACCESS_READ_WRITE_NV | back to summary |
|---|---|
| public static final int WGL_ACCESS_READ_WRITE_NV Accepted by the | |
| WGL_ACCESS_WRITE_DISCARD_NV | back to summary |
|---|---|
| public static final int WGL_ACCESS_WRITE_DISCARD_NV Accepted by the | |
| WGLNVDXInterop | back to summary |
|---|---|
| protected WGLNVDXInterop() | |
| nwglDXLockObjectsNV | back to summary |
|---|---|
| public static int nwglDXLockObjectsNV(long device, int count, long objects) Unsafe version of:
| |
| nwglDXUnlockObjectsNV | back to summary |
|---|---|
| public static int nwglDXUnlockObjectsNV(long device, int count, long objects) Unsafe version of:
| |
| wglDXCloseDeviceNV | back to summary |
|---|---|
public static boolean wglDXCloseDeviceNV(long device)
| |
| wglDXLockObjectsNV | back to summary |
|---|---|
| public static boolean wglDXLockObjectsNV(long device, PointerBuffer objects) Before a GL object which is associated with a DirectX resource may be used, it must be locked with this function. A return value of TRUE indicates that all objects were successfully locked. A return value of FALSE indicates an error. If the function returns FALSE, none of the objects will be locked. Attempting to access an interop object via GL when the object is not locked, or attempting to access the DirectX resource through the DirectX API when it is locked by GL, will result in undefined behavior and may result in data corruption or program termination. Likewise, passing invalid interop device or object handles to this function has undefined results, including program termination.
| |
| wglDXObjectAccessNV | back to summary | |||
|---|---|---|---|---|
| public static boolean wglDXObjectAccessNV(long object, int access) Modifies the access mode of an interop object, if a different access mode is required after the object has been registered.
| ||||
| wglDXOpenDeviceNV | back to summary |
|---|---|
| public static long wglDXOpenDeviceNV(long dxDevice) Prepares a DirectX device for interoperability and returns a handle to a GL/DirectX interop device.
| |
| wglDXRegisterObjectNV | back to summary | |||
|---|---|---|---|---|
| public static long wglDXRegisterObjectNV(long device, long dxResource, int name, int type, int access) Prepares a DirectX object for use by the GL and returns a handle to a GL/DirectX interop object.
| ||||
| wglDXSetResourceShareHandleNV | back to summary |
|---|---|
public static boolean wglDXSetResourceShareHandleNV(long dxObject, long shareHandle)
| |
| wglDXUnlockObjectsNV | back to summary |
|---|---|
| public static boolean wglDXUnlockObjectsNV(long device, PointerBuffer objects) Return control of an object to DirectX.
| |
| wglDXUnregisterObjectNV | back to summary |
|---|---|
public static boolean wglDXUnregisterObjectNV(long device, long object)
| |