split out UdpServer

This commit is contained in:
Vinzenz Schroeter 2025-01-27 22:24:38 +01:00
commit 205cd566cb
5 changed files with 124 additions and 92 deletions

View file

@ -15,6 +15,7 @@ use pathfinder_geometry::{
use servicepoint::{Bitmap, Grid, Origin, Pixels, TILE_SIZE};
use std::sync::{Mutex, MutexGuard};
#[derive(Debug)]
struct SendFont(Font);
// struct is only using primitives and pointers - lets try if it is only missing the declaration
@ -26,6 +27,7 @@ impl AsRef<Font> for SendFont {
}
}
#[derive(Debug)]
pub struct FontRenderer8x8 {
font: SendFont,
canvas: Mutex<Canvas>,