Struct crow_engine::core::Core
[−]
[src]
pub struct Core { /* fields omitted */ }
The main struct of the engine, this struct manages the gameloop and sets up SDL2
# Examples
Methods
impl Core
[src]
fn new(
game_w: u32,
game_h: u32,
scale: u32,
window_title: &str,
fps: u32
) -> Self
game_w: u32,
game_h: u32,
scale: u32,
window_title: &str,
fps: u32
) -> Self
Creates a new Core
.
Panics
- If SDL2 is not setup correctly, this method should
panic!
, Right now, only SDL2 and SDL2_image is required. Go to the SDL2 Crate to see how to setup SDL2.
Examples
use crow_engine::core; let core = core::Core::new()