Struct crayon::graphics::GraphicsSystem
[−]
[src]
pub struct GraphicsSystem { /* fields omitted */ }
The centralized management of video sub-system.
Methods
impl GraphicsSystem
[src]
pub fn new(
window: Arc<Window>,
resource: Arc<ResourceSystemShared>
) -> Result<Self>
[src]
window: Arc<Window>,
resource: Arc<ResourceSystemShared>
) -> Result<Self>
Create a new GraphicsSystem
with one Window
context.
[src]
Returns the multi-thread friendly parts of GraphicsSystem
.
pub fn swap_frames(&self)
[src]
Swap internal commands frame.
pub fn advance(&mut self) -> Result<GraphicsFrameInfo>
[src]
Advance to next frame.
Notes that this method MUST be called at main thread, and will NOT return until all commands is finished by GPU.