Basic4GL, is a program for creating mainly games, both 2D and 3D , although you can also create Animations for any of your BASIC work .
Summary
[ hide ]
- 1 Story
- 2 Features
- 1 New features by version
- 3 Platform
- 4 Code example
- 5 Sources
- 6 References
History
Tom Mulgrew creator of Basic4GL started from a desire to be able to execute OpenGL functions with ease and speed, without the whole installation is normally required in a language like [C ++] and to be more stable. He built a virtual machine similar to the one used at your workplace. It started simply, with few OpenGL functions and minimal other functionality. The first version was relatively popular, named GLBasic , which also happens to be a commercial programming language . Mulgrew set out to expand Basic4GL to the point where it could load and show and model MD2.
characteristics
Basic4GL is an interpretation, the open source version of the BASIC programming language, which also has support for 3D computer graphics using OpenGL. While interpreting, it is also capable of compiling user programs on top of the virtual machine to produce executable programs. It uses a syntax similar to traditional dialects and the basic characteristics of an IDE and a very complete and exhaustive debugger. Basic4GL was not designed to compete with programming languages like C ++, but was intended to replace old languages like QBasic or GFA BASIC . It is a free programming language for Windows computerswith built-in support for the OpenGL graphics library. New features included since version 2.0 are a built-in symbolic debugger, a library for 2D sprites and textures, and the ability to generate EXE files. Basic4GL has the usual commands you would expect to find in a BASIC version like
- ENTRY
- GOSUB
It also includes a number of features that C programmers will be familiar with, such as support for pointers, structures and most importantly of all the OpenGL v1.1 API .
New features by version
- 3.0 – High network capacity
- 3.5 – Support for compiling code at runtime
- 4.2 – OpenAL sound system for Audiere has been modified
- 4.3 – Support for ProgramaDLLs
- 5.0 – Support for added functions
- 5.8 – Support for hexadecimal numbers
Platform
Basic4GL was designed to run on the Windows operating system, but versions for Linux and Mac OS are being developed . Basic4GL is currently being ported to Linux. The main difference between Basic4GL for Windows and the new version of Linux is that it uses the SDL library instead of the specific Windows libraries to initialize an OpenGL enabled window. There is also a Linux-based project to create an extended version of Basic4GL that more closely wraps around the SDL library known as Basic4SDL .
Code example
Dim A
For A = 0 To 4
Printr “Hello”; TO
Next
When the above code is entered into Basic4GL and executed, the following output is displayed on the screen.
Hello 0
Hello1
Hello 2
Hi: 3
Hello 4
