autocommit 2022-04-04 14:29:04 CEST
This commit is contained in:
parent
1f71290dab
commit
e897d271af
21 changed files with 278 additions and 127 deletions
|
|
@ -22,7 +22,7 @@ pub enum GbmError {
|
|||
DrmFd,
|
||||
}
|
||||
|
||||
type Device = u8;
|
||||
pub type Device = u8;
|
||||
type Bo = u8;
|
||||
|
||||
pub const GBM_BO_USE_SCANOUT: u32 = 1 << 0;
|
||||
|
|
@ -128,6 +128,10 @@ impl GbmDevice {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn raw(&self) -> *mut Device {
|
||||
self.dev
|
||||
}
|
||||
|
||||
pub fn create_bo(
|
||||
&self,
|
||||
width: i32,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue