예제 #1
0
        /// <summary>
        /// Retrieves a collection of objects on the device.
        /// </summary>
        /// <param name="deviceObjectTypeFlag">A filter for the returned device objects collection.</param>
        /// <returns>A collection of device objects matching the specified filter.</returns>
        public IList <DeviceObjectInstance> GetObjects(DeviceObjectTypeFlags deviceObjectTypeFlag)
        {
            var enumEffectsInFileCallback = new EnumObjectsCallback();

            EnumObjects(enumEffectsInFileCallback.NativePointer, IntPtr.Zero, (int)deviceObjectTypeFlag);
            return(enumEffectsInFileCallback.Objects);
        }
예제 #2
0
파일: Device.cs 프로젝트: Ziriax/SharpDX
 /// <summary>
 /// Retrieves a collection of objects on the device.
 /// </summary>
 /// <param name="deviceObjectTypeFlag">A filter for the returned device objects collection.</param>
 /// <returns>A collection of device objects matching the specified filter.</returns>
 public IList<DeviceObjectInstance> GetObjects(DeviceObjectTypeFlags deviceObjectTypeFlag)
 {
     var enumEffectsInFileCallback = new EnumObjectsCallback();
     EnumObjects(enumEffectsInFileCallback.NativePointer, IntPtr.Zero, (int)deviceObjectTypeFlag);
     return enumEffectsInFileCallback.Objects;
 }