module metal.gfx

Code Map

module metal.gfx;


enum Width;
enum Height;
enum GlyphWidth;
enum GlyphHeight;

struct Info
{
public:
	w: u32;
	h: u32;
	pitch: u32;
	bytesPerPixel: u32;
	ptr: void*;
	pixelOffX: u32;
	pixelOffY: u32;
	x: u32;
	y: u32;
	loaded: bool;


public:
	fn installSink() { }
	fn sink(str: scope (const(scope (char)[])) { }
}

global info: Info;
global glyphData: immutable(u8)[2560];

fn putGlyph(x: u32, y: u32, glyph: u8) { }
fn clearLine(y: size_t, color: u32) { }