Basic4GL

From Wikipedia, the free encyclopedia

Basic4GL
Basic4GL Logo
Developer: Tom Mulgrew
Latest release: v2.4.4 / Feb 19 - 2007
Dialects: BASIC
OS: Windows
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...

  • PRINT
  • 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 Audiere sound engine.

[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] 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

[edit] External links