BBC BASIC
General >> Announcements >> BBC BASIC for SDL 2.0 v0.15a released http://bbcbasic.conforums.com/index.cgi?board=announcements&action=display&num=1478091882 BBC BASIC for SDL 2.0 v0.15a released
Post by Richard Russell on Nov 2nd, 2016, 1:04pm
I'm pleased to announce a new release of BBCSDL, the cross-platform BBC BASIC for Windows, Linux (86), Android (86) and Mac OS-X. Version 0.15a may be downloaded as follows:
The Windows and Mac OS-X versions come with a brand new release of SDL (2.0.5).
INTERPRETER:
Added a new '-hidden' switch to create the window initially hidden (use SYS "SDL_ShowWindow", @hwnd% to show the window).
RND is initialised more 'randomly' (it no longer uses TIME as the seed).
SDLIDE:
Run-time debugging aids have been implemented: Trace, List Variables, Stop, Pause, Step into, Step over and Run-to-cursor. To enable these you must select Run... Debug Program or Run... Run To Cursor (or click on the Beetle button in the toolbar).
A Profiler tool is provided, to help analyse where time is being spent in your programs. Activate this using Run... Profile Program.
Two-fingered scrolling is implemented, for use with a touchscreen or multi-touch touchpad.
A few minor bugs are fixed.
LIBRARIES:
An OpenGL-based 3D graphics library 'ogllib.bbc' has been added; this is substantially compatible with the BB4W D3DLIBA library, except that textures must be supplied as BMP files.
A 'multiwin' library has been added, this is substantially compatible with the BB4W library of the same name (except that calling PROC_selectwin is required to redraw the window).
EXAMPLE PROGRAMS:
The following 3D graphics demonstrations are supplied: pyramid.bbc, lighting.bbc, world.bbc and teapot.bbc.
A multiple-window demonstration 'multidem.bbc' is supplied.
I still need volunteers to contribute to the documentation, help viewer, addin utilities and libraries. Without your help this project will never be completed!
Richard.
Re: BBC BASIC for SDL 2.0 v0.15a released
Post by jbk on Nov 3rd, 2016, 1:14pm
hello Richard this new version works ok on my Mac, the OS is still the same except for updates.
thank you Re: BBC BASIC for SDL 2.0 v0.15a released
Post by Richard Russell on Nov 3rd, 2016, 8:02pm
David Williams has drawn attention to the Rosetta Code task Munching Squares. It so happens that this is a particularly good example of a program which runs considerably more quickly in BBCSDL than in BB4W. I've timed the program - but with the size% value changed from 256 to 512 - running in BB4W v6.02a and in BBCSDL v0.15a (on a Core i7 laptop) with the following results:
BB4W: 9.4 seconds BBCSDL: 0.9 seconds
So in this particular case the program ran more than ten times faster in BBCSDL! I don't for a moment suggest that this is typical, it isn't (BBCSDL is often slower), but it does illustrate how significant the difference can be.
Richard. Re: BBC BASIC for SDL 2.0 v0.15a released
Post by Leo on Nov 10th, 2016, 11:13am
Hi Richard,
I downloaded BBCSDL20 to try on my Windows 7 machine and ran into a problem with SDLIDE. When I tried to change the edit font, the font selection box did not show facenames, it showed a listing of bits of directory names from my root directory.
The problem occurs because I installed to "c:\Program Files (x86)\BBCSDL". I think any directory with spaces in the name would also cause the problem. I verified it works Ok when installed to a directory without spaces in the name.
Investigating.. in PROCsetfont, I believe the line... N% = FNdirscan(face$(), "dir " + @lib$ + "*.ttf", "*.ttf", "", "")
..needs some more double quotes sprinkled around the @lib$ to deal with the embedded spaces. I haven't (yet) tried this. Re: BBC BASIC for SDL 2.0 v0.15a released
Post by Richard Russell on Nov 10th, 2016, 1:04pm
... needs some more double quotes sprinkled around the @lib$ to deal with the embedded spaces.
Could well be. As you will appreciate, BBCSDL is primarily intended to be run in Linux and Mac OS, in which directory names containing spaces are uncommon. You could try changing the line you mention as follows: