use std::collections::HashSet;
use crate::{
prelude::*,
shape::*,
};
#[derive(Clone, Debug, Default)]
pub struct UnitCube {}
impl UnitCube {
pub fn new() -> Self {
Self {}
}
}
impl Shape for UnitCube {}
impl Instance<ShapeClass> for UnitCube {
fn source(_: &mut HashSet<u64>) -> String {
"#include <clay/shape/cube.h>".to_string()
}
fn inst_name() -> String {
"cube".to_string()
}
}
impl Pack for UnitCube {
fn size_int() -> usize { 0 }
fn size_float() -> usize { 0 }
fn pack_to(&self, _buffer_int: &mut [i32], _buffer_float: &mut [f32]) {}
}