Search found 140 matches

by DDRM
Sun 24 Feb 2019, 20:01
Forum: Announcements
Topic: BBC BASIC for SDL 2.0 version 1.01a released
Replies: 2
Views: 1948

BBC BASIC for SDL 2.0 version 1.01a released

Copied from Richard's posting at Stardot I have today released version 1.01a of BBC BASIC for SDL 2.0, the cross-platform programming language for Windows, MacOS, Linux, Raspberry Pi, Android and iOS. The changes in this version are as follows: IDEs / Compiler: SDLIDE's 'Immediate Mode' has been mod...
by DDRM
Fri 15 Feb 2019, 22:45
Forum: Graphics and Games
Topic: RECTANGLE and RECTANGLE FILL
Replies: 4
Views: 2337

Re: RECTANGLE and RECTANGLE FILL

Hi Zaphod, I get the same results. Yes, they plot different rectangles, at least in BB4W. This is covered in the "pixel-perfect graphics" page, where it explains that, due to the vagaries of the Windows commands, line draws between coordinates (used for outlines) are INclusive, while fills are EXclu...
by DDRM
Wed 13 Feb 2019, 08:38
Forum: User Interface
Topic: Tree View routine
Replies: 27
Views: 12282

Re: Tree View routine

Hi Folks, As you may be aware, Richard has used Svein's tree view routine in the latest version of BBC-SDL, to allow implementation of the cross-reference utility in the IDE. In order to suit it to the cross platform environment (including 64 bit ones) and allow "crunching", he made a few amendments...
by DDRM
Thu 07 Feb 2019, 09:09
Forum: User Interface
Topic: Screen dimensions
Replies: 15
Views: 6029

Re: Screen dimensions

Thanks, Zaphod.

That's what happens when you have a quick hack at something during your lunchbreak without thinking it through...

D
by DDRM
Wed 06 Feb 2019, 08:33
Forum: User Interface
Topic: Screen dimensions
Replies: 15
Views: 6029

Re: Screen dimensions

Hi Mike, If you look what happens earlier, displaydeviceA.devicename% points to a memory buffer, where the system call returns a string. Dredging my memory, and without checking the manual, such strings are usually nul-terminated, so you can use the indirection operator $$ to tell BB4W that that is ...
by DDRM
Mon 04 Feb 2019, 09:07
Forum: Announcements
Topic: BBC BASIC for SDL 2.0 v1.00a released
Replies: 1
Views: 1644

BBC BASIC for SDL 2.0 v1.00a released

Copied verbatim from the groups.io post: I have today released version 1.00a of BBC BASIC for SDL 2.0, the cross-platform programming language for Windows, Linux, MacOS, Raspberry Pi, Android and iOS (I recently canvassed opinion on whether it was appropriate to allocate this version number, and the...
by DDRM
Tue 29 Jan 2019, 15:20
Forum: User Interface
Topic: Screen dimensions
Replies: 15
Views: 6029

Re: Screen dimensions

Hi Kendall, Does this get you any further? I've modified your code a bit: notably 1) to put the value for cb% in the relevant structure element 2) To get the device name to print as an indirected string 3) For some reason the FOR i%...loop was throwing a "no such variable" error on the second monito...
by DDRM
Wed 23 Jan 2019, 08:57
Forum: Graphics and Games
Topic: The power of GPU shaders
Replies: 16
Views: 8894

Re: The power of GPU shaders

Hi RIchard,

OpenGL: OK, don't take it seriously, but your response is useful, thank you.

Difference in rendering: interesting. I'll try it on some different machines.

Best wishes,

D
by DDRM
Wed 23 Jan 2019, 08:52
Forum: Miscellaneous
Topic: Is it safe, or good practise, to allocate memory with SYS"malloc"?
Replies: 2
Views: 1840

Re: Is it safe, or good practise, to allocate memory with SYS"malloc"?

Hi PM, Well, in terms of temporary memory allocation in BBC Basic it depends a bit on context - you can use DIM LOCAL to reserve temporary space, but only within a procedure/function (as far as I know). Otherwise I've certainly seen others who know more than me using MALLOC in their programs, so it ...
by DDRM
Mon 21 Jan 2019, 17:32
Forum: Graphics and Games
Topic: The power of GPU shaders
Replies: 16
Views: 8894

Re: The power of GPU shaders

Ooh, interesting, thank you. I've been meaning to ask if/how it's possible to use OpenGl in BB4W! :-) Here this version runs much less well: the sea surface looks quantized (steps in the surface), and colouring is less good. any ideas why? I assume the actual shader code is the same, and presumably ...