Move PlatformContext to the raidillon_platform crate
This commit is contained in:
parent
9905ffd26b
commit
369bbd19c7
8 changed files with 15 additions and 16 deletions
|
|
@ -15,7 +15,7 @@ use crate::render::debug_ui::ImguiBridge;
|
|||
use crate::render::BasicMeshRenderingSystem;
|
||||
use crate::GliumAssetManager;
|
||||
|
||||
pub struct GliumPlatform<E: EngineTrait> {
|
||||
pub struct GliumPlatform<E: EngineTrait<PlatformCtx = PlatformContext>> {
|
||||
event_loop: EventLoop<()>,
|
||||
window: Window,
|
||||
display: Display<WindowSurface>,
|
||||
|
|
@ -24,7 +24,7 @@ pub struct GliumPlatform<E: EngineTrait> {
|
|||
engine: E,
|
||||
}
|
||||
|
||||
impl<E: EngineTrait> Platform<E> for GliumPlatform<E> {
|
||||
impl<E: EngineTrait<PlatformCtx = PlatformContext>> Platform<E> for GliumPlatform<E> {
|
||||
fn initialize(mut engine: E, title: String, width: u32, height: u32) -> Self {
|
||||
let event_loop = glium::winit::event_loop::EventLoop::builder()
|
||||
.build()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue