Newer
Older
Import / code / .svn / pristine / 94 / 9472f5d9820baa1fba73a2d346a98313cc3b0eec.svn-base
@John John on 29 Dec 2020 312 bytes bulk import from macbookpro checkouts

enum ColourFormat {
	RGB_555 = 0,
	RGB_565,
	RGB_888 ,
	ARGB_8888
};

class Colour {
	public:
		unsigned char red;
};

static const int screenWidth = 1024;

template<ColourFormat format>
void writePixel(int x, int y, Colour col)
{
	int index = (y * screenWidth) + x;
	//framebufferBaseAddress[index] = val;
}