Skip to content

Commit

Permalink
Implement 1x1 monochrome rectangle (point) GPU command
Browse files Browse the repository at this point in the history
  • Loading branch information
simias committed Nov 11, 2015
1 parent b7a17b0 commit 1f6d8f0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/gpu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,18 @@ impl Gpu {
semi_transparent: true,
texture: TextureMethod::Raw,
}),
0x68 =>
(2, Gp0Attributes {
callback: Gpu::gp0_monochrome_rect_1x1,
semi_transparent: false,
texture: TextureMethod::None,
}),
0x6a =>
(2, Gp0Attributes {
callback: Gpu::gp0_monochrome_rect_1x1,
semi_transparent: true,
texture: TextureMethod::None,
}),
0x74 =>
(3, Gp0Attributes {
callback: Gpu::gp0_textured_rect_8x8,
Expand Down Expand Up @@ -974,6 +986,11 @@ impl Gpu {
self.gp0_rect_sized(size[0], size[1]);
}

/// Draw a 1x1 monochrome rectangle (point)
fn gp0_monochrome_rect_1x1(&mut self) {
self.gp0_rect_sized(1, 1);
}

/// Draw a 8x8 textured rectangle
fn gp0_textured_rect_8x8(&mut self) {
self.gp0_rect_sized(8, 8);
Expand Down

0 comments on commit 1f6d8f0

Please sign in to comment.