~starkingdoms/starkingdoms

ref: 5eaa81cc1ccc43e7b1e086071a3e9b32c6dd8568 starkingdoms/client/src/rendering/mod.rs -rw-r--r-- 220 bytes
5eaa81cc — c0repwn3r recv position and planet data on the client 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
use std::error::Error;
use async_trait::async_trait;

pub mod renderer;
pub mod texture;

#[async_trait]
pub trait Renderer {
    async fn get(canvas_element_id: &str) -> Result<Self, Box<dyn Error>> where Self: Sized;
}