class GBA::PPU
- GBA::PPU
- Reference
- Object
Defined in:
crab/gba/ppu.crConstant Summary
-
SPRITE_PIXEL =
SpritePixel.new(4, 0, false, false)
Constructors
Instance Method Summary
- #[](io_addr : UInt32) : UInt8
- #[]=(io_addr : UInt32, value : UInt8) : Nil
- #bitmap? : Bool
-
#blend(top : UInt16, bot : UInt16, blend_mode : BlendMode) : UInt16
Simple blending routine just to mix two UInt16 colors.
-
#blend(top : Color, bot : Color, effects_enabled : Bool) : UInt16
Blend the colors handling special-case sprite logic.
-
#calculate_color(col : Int) : UInt16
Calculate the color at the current position.
- #composite(scanline : Slice(UInt16)) : Nil
- #draw : Nil
- #end_hblank : Nil
- #frame : Bool
- #frame=(frame : Bool)
- #framebuffer : Slice(UInt16)
-
#get_enables(col : Int) : Tuple(UInt16, Bool)
Returns a u16 representing the layer enable bits and a bool indicating whether effects are enabled.
- #oam : Slice(UInt8)
- #pram : Slice(UInt8)
- #render_aff_bg(bg : Int) : Nil
- #render_reg_bg(bg : Int) : Nil
- #render_sprites : Nil
- #scanline : Nil
-
#se_address(tx : Int, ty : Int, screen_size : Int) : Int
Get the screen entry offset from the tile x, tile y, and background screen-size param using tonc algo
-
#select_top_colors(enable_bits : Int, col : Int) : Tuple(Color, Color)
Select the top two colors at the current position.
- #start_hblank : Nil
- #start_line : Nil
- #vram : Slice(UInt8)
Constructor Detail
Instance Method Detail
Simple blending routine just to mix two UInt16 colors.
Blend the colors handling special-case sprite logic.
Returns a u16 representing the layer enable bits and a bool indicating whether effects are enabled.
Get the screen entry offset from the tile x, tile y, and background screen-size param using tonc algo
Select the top two colors at the current position.