module charge.game.tui.grid

Code Map

module charge.game.tui.grid;


//! A glyph grid that you can use to create text-user-interface with.
class Grid
{
public:
	this(width: u32, height: u32) { }
	fn close() { }
	fn put(x: i32, y: i32, glyph: u8) { }
	fn setSize(width: u32, height: u32) { }
	fn setGlyphSize(width: i32, height: i32) { }
	fn setOffset(x: i32, y: i32) { }
	fn setColor(color: math.Color4b) { }
	fn reset() { }
	fn getSizeInPixels(width: u32, height: u32) { }
	fn draw(t: Target) { }
	fn width() u32 { }
	fn height() u32 { }
	fn isDirty() bool { }


protected:
	mData: u8[];
	mTextVBO: DrawBuffer;
	mTextState: BitmapState;
	mTextBuilder: DrawVertexBuilder;
	mWidth: u32;
	mHeight: u32;
	mColor: math.Color4b;
	mDirty: bool;


protected:
	fn updateVBO() { }
}
class Grid

A glyph grid that you can use to create text-user-interface with.