Struct bgfx_rs::static_lib::PlatformData
source · [−]#[repr(C)]pub struct PlatformData {
pub ndt: *const c_void,
pub nwh: *const c_void,
pub context: *const c_void,
pub back_buffer: *const c_void,
pub back_buffer_ds: *const c_void,
}
Expand description
Platform data.
Fields
ndt: *const c_void
Native display type (*nix specific).
nwh: *const c_void
Native window handle. If NULL
bgfx will create headless
context/device if renderer API supports it.
context: *const c_void
GL context, or D3D device. If NULL
, bgfx will create context/device.
back_buffer: *const c_void
GL back-buffer, or D3D render target view. If NULL
bgfx will
create back-buffer color surface.
back_buffer_ds: *const c_void
Backbuffer depth/stencil. If NULL
bgfx will create back-buffer
depth/stencil surface.
Implementations
sourceimpl PlatformData
impl PlatformData
pub fn new() -> PlatformData
Auto Trait Implementations
impl RefUnwindSafe for PlatformData
impl !Send for PlatformData
impl !Sync for PlatformData
impl Unpin for PlatformData
impl UnwindSafe for PlatformData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more