Rename crate folders to remove raidillon prefix
This commit is contained in:
parent
176ea52ab0
commit
3458662cfc
29 changed files with 31 additions and 28 deletions
10
Cargo.toml
10
Cargo.toml
|
|
@ -1,8 +1,8 @@
|
|||
[workspace]
|
||||
members = [
|
||||
"raidillon_core",
|
||||
"raidillon_glium",
|
||||
"raidillon_platform",
|
||||
"raidillon_assets",
|
||||
"raidillon_game"
|
||||
"core",
|
||||
"glium_platform",
|
||||
"platform",
|
||||
"assets",
|
||||
"game"
|
||||
]
|
||||
|
|
|
|||
0
raidillon_core/Cargo.lock → core/Cargo.lock
generated
0
raidillon_core/Cargo.lock → core/Cargo.lock
generated
|
|
@ -6,5 +6,5 @@ edition = "2024"
|
|||
[dependencies]
|
||||
hecs = "0.10.5"
|
||||
indexmap = "2.10.0"
|
||||
raidillon_assets = { path = "../raidillon_assets" }
|
||||
raidillon_assets = { path = "../assets" }
|
||||
winit = "0.30.12"
|
||||
13
game/Cargo.toml
Normal file
13
game/Cargo.toml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[package]
|
||||
name = "raidillon_game"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[features]
|
||||
default = ["glium"]
|
||||
glium = ["raidillon_glium"]
|
||||
|
||||
[dependencies]
|
||||
raidillon_core = { path = "../core" }
|
||||
raidillon_platform = { path = "../platform" }
|
||||
raidillon_glium = { path = "../glium_platform", optional = true }
|
||||
|
|
@ -12,7 +12,7 @@ fn main() {
|
|||
|
||||
// Set up the scene
|
||||
let main_scene_id = "Main".to_owned();
|
||||
let mut main_scene = Scene::new(
|
||||
let main_scene = Scene::new(
|
||||
main_scene_id.clone(),
|
||||
None,
|
||||
);
|
||||
|
|
@ -8,8 +8,8 @@ anyhow = "1.0.98"
|
|||
glam = "0.30.5"
|
||||
glium = { version = "0.35.0", features = ["glutin_backend", "simple_window_builder"] }
|
||||
gltf = { version = "1.4.1", features = ["import", "utils", "KHR_texture_transform"] }
|
||||
raidillon_platform = { path = "../raidillon_platform" }
|
||||
raidillon_core = { path = "../raidillon_core" }
|
||||
raidillon_assets = { path = "../raidillon_assets" }
|
||||
raidillon_platform = { path = "../platform" }
|
||||
raidillon_core = { path = "../core" }
|
||||
raidillon_assets = { path = "../assets" }
|
||||
winit = "0.30.12"
|
||||
indexmap = "2.10.0"
|
||||
|
|
@ -52,7 +52,10 @@ impl Platform for GliumPlatform {
|
|||
let _ = &self.event_loop.run(move |event, el| {
|
||||
match event {
|
||||
Event::WindowEvent { event, .. } => match event {
|
||||
WindowEvent::CloseRequested => {},
|
||||
WindowEvent::CloseRequested => {
|
||||
// TODO: Run uninitialize on renderer and engine
|
||||
el.exit();
|
||||
},
|
||||
WindowEvent::RedrawRequested => {
|
||||
let mut target = self.display.draw();
|
||||
target.clear_color(0.0, 0.0, 0.0, 1.0);
|
||||
|
|
@ -10,8 +10,8 @@ pub struct RenderingContext<'a> {
|
|||
pub asset_manager: ModelManagerRef,
|
||||
}
|
||||
|
||||
/// The internal "rendering system" trait of raidillon_glium.
|
||||
/// This is unrelated to the main System trait in raidillon_core.
|
||||
/// The internal "rendering system" trait of glium_platform.
|
||||
/// This is unrelated to the main System trait in core.
|
||||
pub trait RenderingSystem {
|
||||
fn render(&mut self, ctx: &mut RenderingContext);
|
||||
fn compile_shaders(&mut self) {}
|
||||
|
|
@ -5,5 +5,5 @@ edition = "2024"
|
|||
|
||||
[dependencies]
|
||||
winit = "0.30.12"
|
||||
raidillon_core = { path = "../raidillon_core" }
|
||||
raidillon_assets = { path = "../raidillon_assets" }
|
||||
raidillon_core = { path = "../core" }
|
||||
raidillon_assets = { path = "../assets" }
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
[package]
|
||||
name = "raidillon_game"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[features]
|
||||
default = ["glium"]
|
||||
glium = ["raidillon_glium"]
|
||||
|
||||
[dependencies]
|
||||
raidillon_core = { path = "../raidillon_core" }
|
||||
raidillon_platform = { path = "../raidillon_platform" }
|
||||
raidillon_glium = { path = "../raidillon_glium", optional = true }
|
||||
Loading…
Add table
Add a link
Reference in a new issue