Top Description Constructors Methods
org.lwjgl.opengl

public final Class NVPresentVideoUtil

extends Object
Class Inheritance
Imports
org.lwjgl.BufferChecks, .LWJGLUtil, java.nio.ByteBuffer, .IntBuffer, .LongBuffer

This class exposes the platform specific functionality present in the NV_present_video extension.
Author
Spasi
Since
20/5/2011

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
private static ByteBuffer
public static boolean

Returns:

true if the binding was successful
glBindVideoDeviceNV
(int
the video slot
video_slot
,
long
the video device
video_device
,
IntBuffer
the attributes to use
attrib_list
)

Binds the video output device specified to one of the context's available video output slots.

public static int

Returns:

the number of available video output devices
glEnumerateVideoDevicesNV
(LongBuffer
the buffer to store devices in
devices
)

Enumerate the available video output devices.

public static boolean
glQueryContextNV(int
the attribute to query
attrib
,
IntBuffer
the buffer to store the value in
value
)

Queries an attribute associated with the current context.

private static native boolean
nglBindVideoDeviceNV(ByteBuffer peer_info, int video_slot, long video_device, IntBuffer attrib_list, int attrib_list_position)

private static native int
nglEnumerateVideoDevicesNV(ByteBuffer peer_info, LongBuffer devices, int devices_position)

private static native boolean
nglQueryContextNV(ByteBuffer peer_info, ByteBuffer context_handle, int attrib, IntBuffer value, int value_position)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NVPresentVideoUtilback to summary
private NVPresentVideoUtil()

Method Detail

checkExtensionback to summary
private static void checkExtension()
getPeerInfoback to summary
private static ByteBuffer getPeerInfo()
glBindVideoDeviceNVback to summary
public static boolean glBindVideoDeviceNV(int video_slot, long video_device, IntBuffer attrib_list)

Binds the video output device specified to one of the context's available video output slots. This method is the cross-platform equivalent of glXBindVideoDeviceNV and wglBindVideoDeviceNV. To release a video device without binding another device to the same slot, call it with video_device set to 0 (will use INVALID_HANDLE_VALUE on WGL).

Parameters
video_slot:int

the video slot

video_device:long

the video device

attrib_list:IntBuffer

the attributes to use

Returns:boolean

true if the binding was successful

glEnumerateVideoDevicesNVback to summary
public static int glEnumerateVideoDevicesNV(LongBuffer devices)

Enumerate the available video output devices. This method is the cross-platform equivalent of glXEnumerateVideoDevicesNV and wglEnumerateVideoDevicesNV. 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.

Parameters
devices:LongBuffer

the buffer to store devices in

Returns:int

the number of available video output devices

glQueryContextNVback to summary
public static boolean glQueryContextNV(int attrib, IntBuffer value)

Queries an attribute associated with the current context. This method is the cross-platform equivalent of glXQueryContext and wglQueryCurrentContextNV.

Parameters
attrib:int

the attribute to query

value:IntBuffer

the buffer to store the value in

nglBindVideoDeviceNVback to summary
private static native boolean nglBindVideoDeviceNV(ByteBuffer peer_info, int video_slot, long video_device, IntBuffer attrib_list, int attrib_list_position)
nglEnumerateVideoDevicesNVback to summary
private static native int nglEnumerateVideoDevicesNV(ByteBuffer peer_info, LongBuffer devices, int devices_position)
nglQueryContextNVback to summary
private static native boolean nglQueryContextNV(ByteBuffer peer_info, ByteBuffer context_handle, int attrib, IntBuffer value, int value_position)