GLBasic

GLBasic
Developer(s)Dream Design Entertainment Software
Stable release
15.004 / August 4, 2017; 7 years ago (2017-08-04)
Preview release
15.238
Operating systemWindows
PlatformWindows, Intel/PowerPC Mac, Linux (and Xbox Linux), OS-X, Pocket PC, GP32, GP2X/GP2X Wiz, iPhone, iPad, Palm Pre/Pixi, HP WebOS devices (HP TouchPad, Pre2/3, Veer), Open Pandora, Palm Pre 2/Tablet, Android
TypeCompiler
License2D Free version for Windows, Mac and Linux (can also be used to compile time-limited versions for other supported platforms), Commercial version, Free School Version
Websitewww.glbasic.com

GLBasic is a commercial BASIC programming language that can compile to various platforms including Windows, Linux, Mac OS X, and some handheld devices. The language is designed to be simple and intuitive.

Overview

GLBasic started as an interpreted language with 2D commands (GL stands for Graphics Language). It now uses the GCC compiler for many different platforms to achieve fast, native code results. The GLBasic precompiler "GPC" converts the simple BASIC language into C++ code and compiles it 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 third-party dynamic libraries on all platforms. The GLBasic SDK comes with an IDE, debugger, and a graphics engine built on OpenGL (or OpenGL ES) for the platforms Windows, Linux, Mac OS X, iOS, and WebOS. For handheld devices (Windows Mobile, GP2X, and GP2X Wiz), GLBasic uses its own close-to-hardware routines for fast graphics.

To compile for the iPhone or iPad, you will need an iMac (on which to compile the generated code - to comply with Apple's requirements) and the latest version of Xcode, which is a free download from the Apple website.

To be able to actually run the program on an iPhone or iPad (GLBasic programs will not work on the emulator), you need to be a member of the iPhone Apple Developer Connection.

Since the release of the 8.054 beta, it became possible to compile for the Open Pandora machine as well. However, with the lack of Windows programming tools half of the compiling process is performed on Windows, and the other half on the actual machine. Since version 10, the IDE directly builds packages on Windows for the Pandora.

Version 8.230 and above can compile for the Web-OS devices like the Palm Pre without additional hardware or developer program membership requirements. Support for the HP TouchPad was added in September 2011 via a web-update.

Version 10.057 added support to build application packages running on Android devices.

GLBasic comes with numerous examples.

Online publication

Apps created with GLBasic can be uploaded to the Apple App Store, Google Play, and HP's App Catalog; all of which require a developer account. Costs to the developer and pre-publication review level depend on the publisher used.

For Apple iOS the iOS Developer Program costs US$99 per year. All apps published on the app store are required to undergo a two-week, review-and-approval process prior to publication.

For Android there is a one-time fee of US$25. Apps published via Google Play Store are not subject to an approval process and are immediately available to the public.

Publishing via HP's App Catalog requires a free account. Apps placed for sale through HP's App Catalog undergo a five-day review process before publication.

A wrapper for the Intel AppUp Centre SDK is also available for GLBasic.

Features

GLBasic has the following features:

General

  • Programs are written in BASIC.
  • String and numbers are automatically converted between types.
  • Arrays can be a fixed size or dynamic.
  • Sound, graphics and data can be compressed into a single file.
  • Users can define their own types. Types within type and dynamic arrays are allowed.
  • C code can be included by putting appropriate code between a starting and ending command, or can be included during compilation. In addition, for Windows, functions within DLLs can be called.
  • A few features are only available in PC format.
  • Programs for the iOS can use OpenFeint.

3D features

  • The 3D engine is simple to use and maintains fast processing of objects
  • Objects can be animated
  • Works with most of the common 3D formats
  • Objects can have shadows
  • An Entity System is available as a free open source library package

2D features

  • Sprites can be rotated and scaled and take account of blending and tinting values.
  • Lines, filled rectangles, and other shapes can be drawn.

Network features

  • TCP/IP and UDP/IP sockets are available, as well as a higher-level library built atop the IP-sockets.

Compiler

  • The compiler is cross-platform. You do need an Intel Mac to compile the generated iPhone code though, as per Apple's legal requirements.

IDE

  • The editor is Windows only, but can run at a decent speed in most virtual machines. With Wine though, you can only compile for windows. Crossover/Mac support is given since version 10.
  • A third-party editor for the Mac is being worked on.

GUI system

GLBasic comes with the source code to DDgui, an easy-to-use GUI system, allowing all supported platforms to have the same look and feel across all platforms.

For Windows, Linux and Mac GLBasic has ported a Tcl/Tk wrapper that offers a native OS look.

Versions

GLBasic has gone through the following revisions:

  • Version 1.2 - The first version of GLBasic (also known as The DiNGS Game Basic sequel) (2000)
  • Version 2.4 - This introduced PocketPC support
  • Version 3.0 - (Codename: Behemoth) added TYPEs
  • Version 4.0 - Introduced the ability to interface with Window's DLLs and introduced compiling for the Xbox (if Linux is installed on it). It should also run on standard Linux, although there is no hardware acceleration, so programs run much slower. (2007)
  • Version 5.0 - Introduced compiling for the Apple Mac as a Universal application
  • Version 6.0 - Introduced integers into GLBasic for the first time. Previously variables could either be floating-point or strings (December 2008)
  • Version 7.0 - Introduced the ability to compile for Apple iPhone and iPod Touch devices. (August 2009)
  • Version 8.2 - Now free for non-commercial Projects, supports Open Pandora platform, iPhone/iPad support (August 2010)
  • Version 9.0 - Introduced the ability to compile for Palm WebOS (Palm Pre, Palm Pixi). (March 2011)
  • Version 10.057 - Introduced the ability to compile for Android
  • Version 10.109 - Added support for WebOS pads like the HP TouchPad
  • Version 11.0 - Added HTML5 support
  • Version 12 - Improved HTML5 port, native GUI library (January 2014)
  • Version 14* - Other platforms now installed as plugins, PRESCALER, improved debugging (August 2015) *skipped v13
  • Version 14 - Update: introduces support for IPv6 in network commands, libPNG updated (October 2016)
  • Version 15 - "Unicorn", Improved debugging options, adds True Type Fonts (November 2017)
  • Version 16 - Available through Steam, renewed C++ compiler, Windows x64 support (March 2019)

Sample 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

Limited object-oriented scope

With Version 8, GLBasic added basic object-oriented commands to the TYPE command. This allows structures to access itself (using the 'self' command) and to have functions within TYPEs

Simple OOP test

 TYPE Tvec
  x;y;z
  FUNCTION null:
   self.x = 0; self.y=0;
  ENDFUNCTION
  FUNCTION add: v AS Tvec
   INC self.x, v.x
   INC self.y, v.y
   INC self.z, v.z
  END FUNCTION
 END TYPE
 LOCAL vec AS Tvec, vec2 AS Tvec
 vec.null()
 vec.x=50
 vec2.x = 100
 vec.add(vec2)

Version 8 can encrypt and decrypt strings using 128-bit Blowfish.

The future

Due to the author having problems with ARM64 iOS compilers, various other problems, and insufficient time to update the software, the source code (and the forum post about it) was made to those forum members who had a post count of at least 100. The download weighs in at around 2.5 GB compressed.

See also

References

  • This article is based on content taken from GP2X wiki, which is available under the terms of the GFDL.

Read other articles:

Kabinet Merkel keempatKabinet Pemerintahan Germany2018–2021Dibentuk14 Maret 2018Diselesaikan8 Desember 2021Struktur pemerintahanKepala negaraFrank-Walter SteinmeierKepala pemerintahanAngela MerkelPartai anggotaUni Demokrat KristenPartai Sosial DemokratUni Sosial Kristen di BayernStatus di legislatifKoalisi besarPartai oposisiAlternatif untuk JermanPartai Demokrat BebasDie LinkeBündnis 90/Die GrünenPemimpin oposisiAlice WeidelAlexander GaulandSejarahPemilihan umumPemilihan umum federal Jer...

 

 

Federico FelliniNama dalam bahasa asli(it) Federico Fellini BiografiKelahiran20 Januari 1920 Rimini Kematian31 Oktober 1993 (73 tahun)Roma Penyebab kematianSerangan jantung Tempat pemakamanFellini tomb (en) Data pribadiPendidikanUniversitas Roma La Sapienza KegiatanPekerjaanSutradara film, penulis skenario, satirist (en), pembuat komik, penulis dan sutradara Periode aktif1945  –  1992 Dipengaruhi olehCharlie Chaplin dan Pablo Picasso Karya kreatifKarya terkenal(1953) I Vitelloni (...

 

 

Stream in the U.S. state of Connecticut Duck Riverby Jerry Weiss, 2004 The Duck River is a short, partly tidal stream in Old Lyme, Connecticut. It joins the Connecticut River in the estuary at Watch Rock Park, just above the point where the Connecticut flows into Long Island Sound.[1][2][3] The river bisects the Old Lyme Cemetery. The Duck River is popular among artists and photographers. See also List of rivers of Connecticut References ^ CWTA - New London County Wate...

Gempa bumi Irpinia 1980Kehancuran di CampaniaRomaWaktu UTC1980-11-23 18:34:52ISC635924USGS-ANSSComCatTanggal setempat23 November 1980 (23 November 1980)Waktu setempat19:34:52 CETKekuatan6.9 MwEpisentrum40°50′N 15°17′E / 40.84°N 15.28°E / 40.84; 15.28Koordinat: 40°50′N 15°17′E / 40.84°N 15.28°E / 40.84; 15.28Wilayah bencanaItaliaIntensitas maks.X (Ekstrem)Korban2,483 tewas 7,700–8,934 luka 250,000 mengungsi G...

 

 

Voce principale: Associazione Sportiva Roma. AS RomaStagione 2013-2014Sport calcio Squadra Roma Allenatore Rudi Garcia All. in seconda Frederic Bompard Presidente James Pallotta Serie A2º (in Champions League) Coppa ItaliaSemifinalista Maggiori presenzeCampionato: Florenzi (37)Totale: Florenzi (41) Miglior marcatoreCampionato: Destro (13)Totale: Destro (13) StadioOlimpico Abbonati23 872[1] Maggior numero di spettatori54 097 vs Juventus(21 gennaio 2014) Minor numero di...

 

 

Questa voce sull'argomento calciatori giapponesi è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Segui i suggerimenti del progetto di riferimento. Hisato Satō Nazionalità  Giappone Altezza 170 cm Peso 71 kg Calcio Ruolo Attaccante Termine carriera 2021 CarrieraGiovanili 1994-1999 JEF UnitedSquadre di club1 2000-2003 JEF United22 (2)2002→  Cerezo Osaka13 (2)2003-2004 Vegalta Sendai74 (29)2005-2016 Sanfrecce Hiroshima36...

American politician (1900–1989) Claude PepperPepper, c. 1940Chair of the House Rules CommitteeIn officeJanuary 3, 1983 – May 30, 1989Preceded byRichard W. BollingSucceeded byJoe MoakleyMember of the U.S. House of Representativesfrom FloridaIn officeJanuary 3, 1963 – May 30, 1989Preceded byBob SikesSucceeded byIleana Ros-LehtinenConstituency3rd district (1963–1967)11th district (1967–1973)14th district (1973–1983)18th district (1983–1989)United...

 

 

American baseball player Baseball player John ChristensenRight FielderBorn: (1960-09-05) September 5, 1960 (age 63)Downey, California, U.S.Batted: RightThrew: RightMLB debutSeptember 13, 1984, for the New York MetsLast MLB appearanceOctober 1, 1988, for the Minnesota TwinsMLB statisticsBatting average.224Home runs5Runs batted in33 Teams New York Mets (1984–1985) Seattle Mariners (1987) Minnesota Twins (1988) John Lawrence Christensen (born September 5, 196...

 

 

Office building in Manhattan, New York 65 BroadwayFormer namesRailway Express Company Building, American Express Building, J.J. Kenny Company BuildingAlternative namesStandard & Poors BuildingGeneral informationTypeOfficeArchitectural styleNeoclassicalAddress63-65 BroadwayTown or cityFinancial District, Manhattan, New YorkCountryUnited StatesCoordinates40°42′26″N 74°00′45″W / 40.70722°N 74.01250°W / 40.70722; -74.01250Construction started1916Completed1...

سفارة اليابان في العراق اليابان العراق الإحداثيات 33°19′02″N 44°24′29″E / 33.317222222222°N 44.408027777778°E / 33.317222222222; 44.408027777778 البلد العراق  المكان بغداد السفير فوتوشي ماتسوموتو الاختصاص العراق  الموقع الالكتروني الموقع الرسمي تعديل مصدري - تعديل   سفارة اليابان في ال...

 

 

هذه المقالة بحاجة لصندوق معلومات. فضلًا ساعد في تحسين هذه المقالة بإضافة صندوق معلومات مخصص إليها. جزء من سلسلة حول تاريخ جمهورية أيرلندا تسلسل زمني ما قبل التاريخ تاريخ بدائي 400–800 800–1169 1169–1536 1536-1691 1691–1801 1801-1923 Timeline of Irish history شعوب وسياسات أيرلندا الغالية سلطة أيرلندا مملك...

 

 

Gender-aware branch of economics This article is about the discipline. For the journal, see Feminist Economics (journal). The first issue of Ms. magazine examined feminist economics in a piece by Jane O'Reilly Part of a series onFeminism History Feminist history History of feminism Women's history American British Canadian German Waves First Second Third Fourth Timelines Women's suffrage Muslim countries US Other women's rights Women's suffrage by country Austria Australia Canada Colombia Ind...

  提示:此条目页的主题不是俄台關係法。 《臺灣關係法》全名本法乃為協助維持西太平洋之和平、安全與穩定,並授權美国人民与台湾人民继续保持商业、文化和其他关系,以促進美國外交政策,並為其他目的。缩写(通俗)TRA立法机构第96屆美国国会生效日期1979年1月1日引用文献公法美國聯邦公法第96–8號法律汇编93 Stat. 14法典编纂修订法编美國法典第22卷...

 

 

American sitcom This article is about the TV series. For the book, see Fresh Off the Boat: A Memoir. For the general term, see Fresh off the boat. Fresh Off the BoatGenreSitcomCreated byNahnatchka KhanBased onFresh Off the Boatby Eddie HuangStarring Randall Park Constance Wu Hudson Yang Forrest Wheeler Ian Chen Lucille Soong Chelsey Crisp Ray Wise Narrated byEddie HuangOpening themeFresh off the Boat by Danny Brown[1]ComposerBo BoddieCountry of originUnited StatesOriginal languagesEng...

 

 

Hamlet in West Yorkshire, England 53°42′25″N 2°04′01″W / 53.707°N 2.067°W / 53.707; -2.067 Mankinholes in 2016 Date stone for Mankinholes Methodist Church Mankinholes is a hamlet in the Metropolitan Borough of Calderdale, in West Yorkshire, England. It is situated in the Pennines and the nearest town is Todmorden. The hamlet is part of Calder Ward in Calderdale Parish Council. It has a YHA hostel, managed by the larger hostel at nearby Haworth. Mankinholes ...

Ettore Ferrari Deputato del Regno d'ItaliaLegislaturaXV, XVI, XVII Sito istituzionale Ettore Ferrari (Roma, 25 marzo 1845 – Roma, 19 agosto 1929) è stato uno scultore e politico italiano. Figlio dello scultore Filippo Ferrari, fu uno dei protagonisti della celebrazione artistica del nuovo stato laico nato con l'Unità d'Italia. Allievo dell'Accademia nazionale di San Luca, nella quale vinse una borsa di studio nel 1868 e si laureò nel 1872,[1] a lungo professore dell'Istit...

 

 

У этого термина существуют и другие значения, см. Ханна Монтана (значения). Ханна Монтана: Киноангл. Hannah Montana: The Movie Жанр подростковая музыкальная комедийная драма Режиссёр Питер Челсом[1] Продюсеры Дэвид Блокер,Билли Рэй Сайрус,Альфред Гоф,Майлз Миллар,Стивен Питер�...

 

 

Historic house in New Hampshire, United States Not to be confused with the Sullivan House located on Union Street in the same city. United States historic placeRoger Sullivan HouseU.S. National Register of Historic Places Show map of New HampshireShow map of the United StatesLocation168 Walnut St., Manchester, New HampshireCoordinates42°59′54″N 71°27′30″W / 42.99833°N 71.45833°W / 42.99833; -71.45833Arealess than one acreBuilt1892 (1892)Built byWilberf...

Historic house in Massachusetts, United States United States historic placeNewman–Fiske–Dodge HouseU.S. National Register of Historic Places Newman-Fiske-Dodge HouseShow map of MassachusettsShow map of the United StatesLocation162 Cherry Street,Wenham, MassachusettsCoordinates42°36′13″N 70°54′54″W / 42.60361°N 70.91500°W / 42.60361; -70.91500Built1658Architectural styleColonialMPSFirst Period Buildings of Eastern Massachusetts TRNRHP reference...

 

 

Giuseppe ZinettiZinetti al Pescara a fine anni 1980Nazionalità Italia Altezza183 cm Peso79 kg Calcio RuoloPreparatore dei portieri (ex Portiere) Termine carriera1994 - giocatore CarrieraGiovanili 19??-19?? Rezzato19??-19?? Bologna Squadre di club1 1974-1976 Bologna0 (0)1976-1977→  Imola20 (-?)1977-1983 Bologna124 (-122)1983-1984→  Triestina17 (-15)1984-1987 Bologna101 (-82)1987-1990 Pescara60 (-68)1990-1993 Roma30 (-32)1993-1994 Ascoli2 (...