Click here to Skip to main content
15,881,204 members
Articles / High Performance Computing / Vectorization

Bird Programming Language: Part 1

Rate me:
Please Sign up or sign in to vote.
4.92/5 (129 votes)
1 Jan 2013GPL312 min read 372.8K   2.7K   153  
A new general purpose language that aims to be fast, high level and simple to use.
enum Keys
	Backspace = 8, Tab,
	Enter = 13,
	Escape = 27,
	Space = 32,
	PageUp = 33, PageDown, End, Home,
	Left = 37, Up, Right, Down,
	Insert = 45,DELETE,
	N0 = 48, N1, N2, N3, N4, N5, N6, N7, N8, N9,
	A=65, B, C, D, E, F, G, H, I, J,
	K, L, M, N, O, P, Q, R, S, T,
	U, V, W, X, Y, Z,
	
	LSys = 91, Rys,
	
	Numpad0 = 96, Numpad1, Numpad2, Numpad3, Numpad4,
	Numpad5, Numpad6, Numpad7, Numpad8, Numpad9,
	NumpadMul = 106, NumpadAdd, NumpadSlash,
	NumpadSub, NumpadDecimal, NumpadDivide,

	F1 = 112, F2, F3, F4, F5, F6,
	F7, F8, F9, F10, F11, F12,

	LShift = 160, RShift,
	LControl = 162, RControl,
	LAlt = 164, RAlt,

	Tilde = 192, Minus = 189, Equals = 187,
	OpenBacket = 219, CloseBracket = 221, BackSlash = 226,
	SemiColon = 186, Qutes = 222,
	Comma = 188, Period = 190, Slash = 191

extern
	cdecl asmname("_bb_BeginPerf")				void 	BeginPerf()
	cdecl asmname("_bb_EndPerf")				void 	EndPerf()
	cdecl asmname("_bb_PrintInt")				void 	PrintInt(int x)
	cdecl asmname("_bb_PrintLong")				void 	PrintLong(long x)
	cdecl asmname("_bb_PrintDouble")			void 	PrintDouble(double x)
	cdecl asmname("_bb_NewLine")				void 	NewLine()

	cdecl asmname("_brl_graphics_Graphics") 	void* 	Graphics(int Width, Height, Depth, Hertz, Flags)
	cdecl asmname("_brl_graphics_Flip") 		void 	Flip(int Sync)

	cdecl asmname("_brl_polledinput_KeyHit") 	bool 	KeyHit(Keys key)
	cdecl asmname("_brl_polledinput_MouseX") 	int 	MouseX()
	cdecl asmname("_brl_polledinput_MouseY") 	int 	MouseY()
	
	cdecl asmname("_brl_max2d_Cls") 			void	Cls()
	cdecl asmname("_brl_max2d_DrawRect")		void 	DrawRect(float x, y, Width, Height)
	cdecl asmname("_brl_max2d_SetColor")		void 	SetColor(int Red, Green, Blue)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Software Developer
Hungary Hungary
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions