summaryrefslogtreecommitdiffstats
path: root/src/Canvas/DrawContextInterface.php
blob: 6b4aaa5b50416f481cdd937c3e56d26e049a7e1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?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 If colored, each pixel => 4 items on array (RGBA)
     */
    public function draw($canvasBuffer);
}