oa::SdlWindow

SDL3-owned Vulkan-capable window and input/event source.

StRust public API

Declaration

pub struct SdlWindow { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn required_instance_extensions(&self) -> Result<Vec<String>>
pub fn drawable_extent(&self) -> [u32; 2]
pub fn event_pump(&self) -> Result<EventPump>

Associated Functions

pub fn new(title: &str, width: u32, height: u32) -> Result<Self>

Public Method Documentation

pub fn required_instance_extensions( &self ) -> Result<Vec<String>>
No public source comment is attached to this declaration.
pub fn drawable_extent( &self ) -> [u32; 2]
No public source comment is attached to this declaration.
pub fn event_pump( &self ) -> Result<EventPump>
No public source comment is attached to this declaration.
pub fn new( title: &str, width: u32, height: u32 ) -> Result<Self>
No public source comment is attached to this declaration.