Plugins folder

Previous topic - Next topic

AndyH

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 :)

bigsofty

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'...
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Moru

The part about autoloading fonts should be in the help somewhere. I know I read it somewhere at least :-)

AndyH

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 :)

Kitty Hello

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.