some architecture design thoughts i guess
This commit is contained in:
parent
26d357f169
commit
99162d8ab6
18 changed files with 49 additions and 6 deletions
|
|
@ -2,7 +2,7 @@ use std::{ops::{ControlFlow, DerefMut}, sync::Mutex};
|
|||
|
||||
use glium::{glutin::surface::WindowSurface, winit::{self, event::{self, WindowEvent}, event_loop::{self, EventLoop}, window::Window}};
|
||||
|
||||
use crate::{game, game_plugin::GamePlugin, winit::winit_window::WinitWindow, ENGINE_NAME};
|
||||
use crate::{game_plugin::GamePlugin, window::winit_window::WinitWindow, ENGINE_NAME};
|
||||
|
||||
|
||||
pub struct Game {
|
||||
1
moonhare_engine/src/core/mod.rs
Normal file
1
moonhare_engine/src/core/mod.rs
Normal file
|
|
@ -0,0 +1 @@
|
|||
pub mod game;
|
||||
0
moonhare_engine/src/graphics/mod.rs
Normal file
0
moonhare_engine/src/graphics/mod.rs
Normal file
|
|
@ -1,11 +1,12 @@
|
|||
pub mod vertex;
|
||||
pub mod game;
|
||||
pub mod core;
|
||||
pub mod game_plugin;
|
||||
pub mod winit;
|
||||
pub mod window;
|
||||
pub mod logger;
|
||||
|
||||
const ENGINE_NAME: &str = "Moonhare Engine";
|
||||
|
||||
|
||||
pub struct CPointer<T>(T);
|
||||
|
||||
impl<T> Drop for CPointer<T> {
|
||||
|
|
|
|||
0
moonhare_engine/src/math/mod.rs
Normal file
0
moonhare_engine/src/math/mod.rs
Normal file
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
use glium::{backend::glutin::SimpleWindowBuilder, glutin::{display::GetGlDisplay, surface::WindowSurface}, winit::{self, dpi::LogicalSize, event_loop::{ActiveEventLoop, EventLoop}, raw_window_handle::HasDisplayHandle, window::{Window, WindowAttributes}}, Display};
|
||||
|
||||
use crate::winit::window_config::WindowConfig;
|
||||
use crate::window::window_config::WindowConfig;
|
||||
|
||||
use crate::ENGINE_NAME;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue