GLBasic forum

Main forum => GLBasic - en => Topic started by: AndyH on 2008-Jan-23

Title: Plugins folder
Post by: AndyH on 2008-Jan-23
Hi

Taking a look around the GLBasic program files directory, there is a plug in folder and in there is one for GP2X.  The readme says:

This is the mmu-hack from Squidge. It allows GLBasic to access upper 32MB of memory for faster graphics.

Usage:
put this side-by-side with your executable (.gpe) file


What's this all about.  Do/should we copy this with our executables for the GP2X or does GLB pick this up when compiling?  Got any more info on it?

Also in the Samples-Xtra's folder there are some nice examples.  A starfield (lol thread in code forum) and many interesting snippets.  One file is a text Scroller.  I noticed it used a different font to what GLB normally uses but has no LOADFONT/SETFONT commands.  After further inspection  I see there is a file in the same directory as the gbas called "smalfont.bmp" which GLB is automatically picking up and using.  I didn't find any reference to this in the help, are there any other gems you can tell us about GLB that might be useful :)
Title: Plugins folder
Post by: bigsofty on 2008-Jan-24
Short answer, yes, just stick it (mmuhack.o) next to your GPX exe. GLBasic creates it with every GPX compile and utilises it invisibly.

Other Gems, um, I dunno, at least once a week I sit back and find 'Now I didnt know GLB did that... cool! :D'...
Title: Plugins folder
Post by: Moru on 2008-Jan-24
The part about autoloading fonts should be in the help somewhere. I know I read it somewhere at least :-)
Title: Plugins folder
Post by: AndyH on 2008-Jan-24
I didn't see anything around the PRINT, SETFONT, LOADFONT commands in the help that mention this.

A useful bit of information to know about :)
Title: Plugins folder
Post by: Kitty Hello on 2008-Jan-24
I think it's mentioned in the tutorials somewhere.
GLBasic tries to load a smalfont.bmp, then smalfont.png for font 0 at startup. If none exist, it uses the builtin mini-font.