예제 #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
파일: Crtc.cs 프로젝트: jpbruyere/DRI.net
 protected virtual void Dispose(bool disposing)
 {
     unsafe {
         if (handle != null)
         {
             drmModeFreeCrtc(handle);
         }
         handle = null;
     }
 }
예제 #3
0
 internal static extern void drmModeFreeCrtc(drmCrtc *ptr);