BBC BASIC
« BBC BASIC for SDL 2.0 v0.15a released »

Welcome Guest. Please Login or Register.
Jan 20th, 2018, 6:10pm


Cross-platform BBC BASIC (Win32, Linux x86, Android, Mac OS-X, Raspberry Pi)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: BBC BASIC for SDL 2.0 v0.15a released  (Read 484 times)
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 689
xx BBC BASIC for SDL 2.0 v0.15a released
« Thread started 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 main changes in this version are as follows:

SDL 2.0:
  • 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.
« Last Edit: Nov 2nd, 2016, 1:32pm by Richard Russell » User IP Logged

jbk
New Member
Image


member is offline

Avatar




PM


Posts: 12
xx Re: BBC BASIC for SDL 2.0 v0.15a released
« Reply #1 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 smiley
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 689
xx Re: BBC BASIC for SDL 2.0 v0.15a released
« Reply #2 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.
User IP Logged

Leo
New Member
Image


member is offline

Avatar




PM


Posts: 10
xx Re: BBC BASIC for SDL 2.0 v0.15a released
« Reply #3 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.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 689
xx Re: BBC BASIC for SDL 2.0 v0.15a released
« Reply #4 on: Nov 10th, 2016, 1:04pm »

on Nov 10th, 2016, 11:13am, Leo wrote:
... 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:

Code:
      N% = FNdirscan(face$(), "dir """ + @lib$ + "*.ttf""", "*.ttf", "", "") 

Richard.
User IP Logged

Leo
New Member
Image


member is offline

Avatar




PM


Posts: 10
xx Re: BBC BASIC for SDL 2.0 v0.15a released
« Reply #5 on: Nov 10th, 2016, 1:35pm »

Yes, that fixes it.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Donate $6.99 for 50,000 Ad-Free Pageviews!


This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls