0.1.0-0-pre.1
This commit is contained in:
15
crates/engines/engine-v1-sdl/src/lib.rs
Normal file
15
crates/engines/engine-v1-sdl/src/lib.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
// file: crates/engines/engine-v1-sdl/src/lib.rs
|
||||
// version: 1
|
||||
|
||||
#![warn(missing_docs)]
|
||||
#![deny(unreachable_pub)]
|
||||
#![forbid(unsafe_code)]
|
||||
|
||||
//! SDL boundary for engine generation V1.
|
||||
//!
|
||||
//! The baseline intentionally contains only the boundary type. The external SDL3 dependency is introduced in the dedicated SDL integration delta.
|
||||
|
||||
mod runtime;
|
||||
|
||||
/// Re-export of the SDL runtime boundary marker.
|
||||
pub use self::runtime::SdlRuntimeBoundary;
|
||||
14
crates/engines/engine-v1-sdl/src/runtime.rs
Normal file
14
crates/engines/engine-v1-sdl/src/runtime.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
// file: crates/engines/engine-v1-sdl/src/runtime.rs
|
||||
// version: 1
|
||||
|
||||
/// Marker representing the future SDL3 runtime boundary for engine V1.
|
||||
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
|
||||
pub struct SdlRuntimeBoundary;
|
||||
|
||||
impl SdlRuntimeBoundary {
|
||||
/// Returns the engine generation served by this boundary.
|
||||
#[must_use]
|
||||
pub const fn engine_generation() -> u16 {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user