Raspberry Pi/Javascript info

Previous topic - Next topic

MrTAToad

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 ?

matchy

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


MrTAToad

No, I was thinking of the C #define preprocessor variable.

spacefractal

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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrTAToad

That is odd, as the other platforms have one!

spacefractal

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).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrTAToad


MrTAToad

#7
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 ?