summaryrefslogtreecommitdiffstats
path: root/src/Canvas/DrawContextInterface.php
blob: 1666d92c44798738ba04080304f8ab30abf9bacc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
namespace GameBoy\Canvas;

/**
 * Interface to draw the GameBoy output
 * GameBoy screen size: 160 x 144
 */
interface DrawContextInterface
{
    /**
     * Draw image on canvas
     *
     * @param  Array $canvasBuffer  Each pixel => 4 items on array (RGBA)
     * @param  int $left
     * @param  int $top
     */
    public function draw($canvasBuffer, $left, $top);
}