render: hide graphics API behind traits
This commit is contained in:
parent
d650b3375d
commit
24e410a5b5
40 changed files with 601 additions and 246 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use {crate::gfx_apis::gl::RenderContext, std::rc::Rc, uapi::c};
|
||||
use {crate::gfx_api::GfxContext, std::rc::Rc, uapi::c};
|
||||
|
||||
pub struct PortalRenderCtx {
|
||||
pub dev_id: c::dev_t,
|
||||
pub ctx: Rc<RenderContext>,
|
||||
pub ctx: Rc<dyn GfxContext>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue