planetkit 0.0.1

High-level toolkit for building games based around voxel globes.
1
2
3
4
5
6
7
8
9
use std::sync::mpsc;
use gfx;

// Bi-directional channel to send Encoder between game thread(s)
// (as managed by Specs), and the thread owning the graphics device.
pub struct EncoderChannel<R: gfx::Resources, C: gfx::CommandBuffer<R>> {
    pub receiver: mpsc::Receiver<gfx::Encoder<R, C>>,
    pub sender: mpsc::Sender<gfx::Encoder<R, C>>,
}