Implement checkbox::Renderer in ggez example

This commit is contained in:
Héctor Ramón Jiménez 2019-07-22 21:01:59 +02:00
parent ccb87b12da
commit eb45c51a7b
4 changed files with 88 additions and 8 deletions

View file

@ -1,4 +1,5 @@
mod button;
mod checkbox;
mod text;
use ggez::graphics::{self, spritebatch::SpriteBatch, Color, Image};
@ -18,6 +19,7 @@ impl Renderer<'_> {
spritesheet,
}
}
pub fn flush(&mut self) {
graphics::draw(
self.context,