somehow lost texturing need to look back

This commit is contained in:
2019-09-09 22:34:46 -07:00
parent bf3abfe29d
commit 709a617cd1
3 changed files with 7 additions and 5 deletions

View File

@@ -97,9 +97,9 @@ pub fn main() {
let mut mouse_xy = Vector2i::new(0, 0);
let sprite = Sprite::new_with_color((0., 0.), (0.1, 0.1), (1., 0., 0., 1.));
let sprite2 = Sprite::new_with_color((-1., -0.5), (0.1, 0.1), (0., 1., 0., 1.));
let sprite2 = Sprite::new_with_color((-0.3, -0.5), (0.1, 0.1), (0., 1., 0., 1.));
let compu_sprite1 = CompuSprite::new((-1., -0.5), (0.1, 0.1),
let compu_sprite1 = CompuSprite::new((-1., -0.5), (0.4, 0.4),
// This swap image needs to match the size of the compute
processor.new_swap_image((720, 756)));
@@ -172,7 +172,7 @@ pub fn main() {
canvas.draw(&sprite);
canvas.draw(&sprite2);
canvas.draw(&sprite3);
//canvas.draw(&compu_sprite1);
canvas.draw(&compu_sprite1);
{
let g = hprof::enter("Run");
processor.run(&surface,