Basic4GL
From Wikipedia, the free encyclopedia
Basic4GL | |
---|---|
Paradigm | Procedural |
Appeared in | 2002 |
Developer | Tom Mulgrew |
Latest release | v2.5.3/ 22 March 2008 |
Dialects | BASIC |
Influenced by | QuickBASIC, GW-BASIC |
OS | Windows, Linux |
License | Gpl |
Website | http://www.basic4gl.net |
Basic4GL is an interpreted, open source version of the BASIC programming language which also features support for 3D computer graphics using OpenGL. While being interpreted, it is also able to compile the users programs on top of the virtual machine to produce executable programs.
It uses a syntax similar to traditional dialects of BASIC and features an IDE and a very thorough and comprehensive Debugger.
Basic4GL is not designed to compete with programming languages such as C++; it was intended to replace older languages such as QBasic or GFA BASIC.
Basic4GL features the usual commands that you would expect to find in a version of BASIC such as...
- INPUT
- GOSUB
It also includes a few features that C programmers will be familiar with, such as support for pointers, structures and most importantly the entire OpenGL v1.1 API.
Contents |
[edit] Platform
Basic4GL was designed to run on the Windows operating system but a version is being developed for Linux.
[edit] Example
Dim A For A = 0 To 4 Printr "Hello "; A Next
When the above code is entered into Basic4GL and executed, you should see the following output on your monitor screen.
Hello 0 Hello 1 Hello 2 Hello 3 Hello 4
[edit] Support for Sound and Music
When Basic4GL was first released it could only play sounds but in 2006 support for music was added using the Open Al sound engine but later replaced with Audiere.
[edit] Functions and Subroutines
When Basic4GL was first released it had no support for functions. That changed however when version 2.5.0 was released in January 2008. Now Basic4GL has full support for local variables, parameters, forward declaration and recursion.
[edit] Plugins
In August 2006 support for Plugin DLL's was added to Basic4GL. This means that you can write your own commands and include them in the Basic4GL programming language, all you need is a C++ Compiler.
[edit] Basic4GL for Linux
Currently Basic4GL is being ported over to Linux. The major difference between Basic4GL for Windows and the new Linux version is that it uses the SDL library rather than Windows specific libraries to initialize an OpenGL enabled window. There is also a Linux based project to create an extended version of Basic4GL that wraps more closely to the SDL library known as Basic4SDL.
[edit] Basic4GL for Mac
Is currently under development. As of yet no working versions have been released
[edit] SourceForge
Both Basic4GL for Windows and the new Linux version have been placed on SourceForge, this means that people are free to develop the languages and make improvements to them.
[edit] Basic4Games
A Successor to Basic4gl is currently being developed dubbed "Basic4Games". Only one preview has been released.
[edit] See also
- Brutus2D
- Blitz Basic
- Darkbasic
- FreeBASIC
- Game maker
- ThinBasic
- List of BASIC dialects
- List of BASIC dialects by platform