Download Basic4GL

Current released version

Click here to Download the Basic4GL installer for Windows (98, XP, Vista, 7).

Also see the plugins page.

What is Basic4GL?

Basic4GL screenshot

Basic4GL is a free programming language for Windows computers with built in support for the OpenGL graphics library.

Based on traditional BASIC, it is designed to be an easy to learn, easy to use language for writing 3D programs, games, demos and utilities without all the setup hassle associated with most language compilers.

Basic4GL can be used:

OpenGL programs

Basic4GL is built around the OpenGL 3D accellerated graphics library. It automatically handles such tasks as creating an OpenGL window and initialising OpenGL for you, so you can skip all the usual linking, header file and initialisation and start writing OpenGL code from line 1. For example, here's an OpenGL program to draw a triangle.

glBegin(GL_TRIANGLES) glVertex3f(0, 10, -30) glVertex3f(8, -4, -30) glVertex3f(-8, -4, -30) glEnd() SwapBuffers()

Basic4GL screenshot

3D programming

Vectors and matrices are integrated directly into the Basic4GL language as 1D and 2D arrays respectively. Mathematical operators such as multiplication (*) and addition (+) behave appropriately on vector and matrix types, so you can write vector and matrix notation algebra directly into your programs.

You also get a standard library of trig functions and matrix creation routines (designed to mirror OpenGL's matrix creation routines), which makes trigonometry calculations quick, easy and compact to implement.

Games,demos and prototypes

If OpenGL isn't your scene Basic4GL has a sprite and tile-map engine for writing 2D scrolling shooters, platformers or whatever takes your fancy.

Basic4GL screenshot

A few clicks will then convert your program into a stand-alone Windows executable which you can distribute to whoever you want.

Integrated programming and debugging environment

All editing takes place within the Basic4GL integrated development environment with a syntax highlighting editor and built-in symbolic debugger.

The Basic4GL programming language is designed to be simple, flexible and very hard to crash! Run-time errors (such as array index out of bounds) are caught cleanly, and all resources (such as textures or file handles) are automatically cleaned up for you when the program finishes.

Basic4GL editor screenshot

Plugin extensible

Basic4GL screenshot

Basic4GL supports plugins, which allow the language to be extended with new commands and functions. There are a number of existing plugins created by members of the Basic4GL community providing access to many quality third party libraries, such as phyiscs and music/video playback.

C++ programmers can create their own plugins using the Basic4GL plugin SDK.