|
|
@ -97,9 +97,9 @@ pub fn main() {
|
|
|
|
let mut mouse_xy = Vector2i::new(0, 0);
|
|
|
|
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 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
|
|
|
|
// This swap image needs to match the size of the compute
|
|
|
|
processor.new_swap_image((720, 756)));
|
|
|
|
processor.new_swap_image((720, 756)));
|
|
|
|
|
|
|
|
|
|
|
@ -172,7 +172,7 @@ pub fn main() {
|
|
|
|
canvas.draw(&sprite);
|
|
|
|
canvas.draw(&sprite);
|
|
|
|
canvas.draw(&sprite2);
|
|
|
|
canvas.draw(&sprite2);
|
|
|
|
canvas.draw(&sprite3);
|
|
|
|
canvas.draw(&sprite3);
|
|
|
|
//canvas.draw(&compu_sprite1);
|
|
|
|
canvas.draw(&compu_sprite1);
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let g = hprof::enter("Run");
|
|
|
|
let g = hprof::enter("Run");
|
|
|
|
processor.run(&surface,
|
|
|
|
processor.run(&surface,
|
|
|
|