Пример #1
0
        internal Crtc(int _fd_gpu, uint _id)
        {
            fd_gpu = _fd_gpu;
            handle = drmModeGetCrtc(fd_gpu, _id);

            if (handle == null)
            {
                throw new NotSupportedException("[DRI] drmModeGetCrtc failed.");
            }
        }
Пример #2
0
 protected virtual void Dispose(bool disposing)
 {
     unsafe {
         if (handle != null)
         {
             drmModeFreeCrtc(handle);
         }
         handle = null;
     }
 }
Пример #3
0
 internal static extern void drmModeFreeCrtc(drmCrtc *ptr);