GLBasic forum

Main forum => GLBasic - en => Topic started by: MrTAToad on 2016-Jul-19

Title: Raspberry Pi/Javascript info
Post by: MrTAToad on 2016-Jul-19
Does compiling for the Pi work on all 3 versions ? 
Does anyone know what screen resolutions are available ?
What is the preprocessor variable name for the Pi (and Javascript) ?
Any known limitations ?
Title: Re: Raspberry Pi/Javascript info
Post by: matchy on 2016-Jul-19
Compiling is fine for all versions. The screen resolution can be set to what you want. Is this the variable name you are looking for;? :glare:

// Raspberry Pi 3 (uname -a: Linux raspberrypi0 4.4.11+ #888 Mon May 23 20:02:58 BST 2016 armv6l GNU/Linux)
PLATFORMINFO$("") is "ARM-LINUX-EGL"
PLATFORMINFO$("DEVICE") is "DESKTOP"
PLATFORMINFO$("DPI") is 96

// Windows 10 64bit
PLATFORMINFO$("") is "WIN32"
PLATFORMINFO$("DEVICE") is "DESKTOP"
PLATFORMINFO$("DPI") is 96

Title: Re: Raspberry Pi/Javascript info
Post by: MrTAToad on 2016-Jul-20
No, I was thinking of the C #define preprocessor variable.
Title: Re: Raspberry Pi/Javascript info
Post by: spacefractal on 2016-Jul-20
Not as I'm can see in the h file. But until then, you could do a user define as I'm did with android in the eailer days.
Title: Re: Raspberry Pi/Javascript info
Post by: MrTAToad on 2016-Jul-21
That is odd, as the other platforms have one!
Title: Re: Raspberry Pi/Javascript info
Post by: spacefractal on 2016-Jul-21
Android define was also missing when its was ported its time.... Im do not see any standard define in stdafx.h throught for this platform.

But howover, when checking out in platform.ini, its seen the define used is RASPBERRY_PI (its added a -DRASPBERRY_PI to the g++ compiler).
Title: Re: Raspberry Pi/Javascript info
Post by: MrTAToad on 2016-Jul-22
Ah, great thanks!
Title: Re: Raspberry Pi/Javascript info
Post by: MrTAToad on 2016-Jul-25
What format does  music need to be in for the Pi & HTML 5 ?
Is file i/o allowed in a limited form for HTML 5, or totally blocked ?