- GLBasic
GLBasic is a commercial BASIC programming language, that can compile to various platforms, including
Windows ,Linux ,Mac OS X as well as Handhelds like Pocket PC,GP2X ,GP2X Wiz and Pandora. The language is designed to be simple and intuitive.Overview
GLBasic started as an interpreted Language with 2D commands but now uses the GCC compiler for many different platforms to achieve fast, native code results for various platforms. The GLBasic precompiler "GPC" converts the simple BASIC language into C++ code and compiles that later. Thus, the user can extend GLBasic using the INLINE command to mix C/C++ code directly with GLBasic source code. Due to this, GLBasic can easily access 3rd party dynamic libraries on all platforms.The GLBasic SDK came with an IDE, debugger and an engine built on OpenGL for the platforms
Windows ,Linux andMac OSX . For theHandheld devices GLBasic uses its own close to hardware routines for fast graphics.The current version is 5.200 with version 6 under development, it will include a public version of the compiler forGP2X Wiz devices.Features
General
*Extraordinarily easy programming language
*Mixing Strings and Numbers
*fast Dynamic Arrays
*Native support for compressed Data Archives (Sound, Graphics and Data all in one encrypted file!)
*Userdefined Types
*Arrays of Types within Types
*Path Finding Algorithm, in a single command!
*Extendable as you require through inline C/C++3D Features
*Complete 3D engine
*Simple command set
*Smooth 3D Animations
*Loading and Saving user Defined Objects
*Works with all Common 3D Formats (3ds, md2, md3, ac3d, blender, x)
*Alpha Blending
*Collision Detection
*File Exporter for AC3D and Blender3D
*Binary and ASCII file formatsPC-only Features
*Supports GLSL - Shaders
*Real Time Shadows
*Dot3 Bump Mapping
*Cel-Shading (Cartoon Rendering)2D Features
*Sprites, Rotating, Zooming, Blending
*Basic Drawings (Polygons, Lines, Rectangles, Points)
*Polygonal Sprites
*Alpha Blending for EverythingNetwork Features
*Tcp/IP
*Udp
*Direct connections
*Simplified interface with messagesCompiler
*Cross Platform
*Native platform Executables
*No Runtime Files RequiredIDE
*Platform Native, Standard GUI
*Syntax Formatting + Highlighting
*Integrated and interactive help
*Integrated Helper Tools (Keycodes, Font Generator, Calculator, ...)
*Function and Include File Names are Conveniently Listed within the IDE for Easy Code Navigation
*Support for Multiple Files within Projects
*Project Wizards
*Create HTML documentation directly from your code
*Sharing GLBasic modules as read protected librariesSample code
Hello World // this is a comment // Print "Hello World" to the screen position 0,0 (top, left) PRINT "Hello World", 0,0 // swap backbuffer and visible screen, prepare backbuffer for next rendering SHOWSCREEN // wait for a key to be pressed KEYWAIT
See also
*
SDL-Basic A BASIC for GP2X, that is interpreted.
*Fenix An interpreted language that is easier to learn than C++References
*"This article is based on content taken from [http://wiki.gp2x.org/wiki/GLBASIC GP2X wiki] , which is available under the terms of the GFDL."
External links
*The GLBasic [http://www.glbasic.com website]
* [http://www.glbasic.com/main.php?site=games-gp2x-compo GP2X games] written for the GLBasic/gp2x.de [http://www.glbasic.com/main.php?site=gp2x-compo competition] 2008
Wikimedia Foundation. 2010.