Go to advanced search

by RichardRussell
Fri Aug 09, 2019 4:09 pm
Forum: Advanced users
Topic: glLogicOp(GL_OR) not working on Raspberry Pi 4?
Replies: 10
Views: 538

Re: glLogicOp(GL_OR) not working on Raspberry Pi 4?

Which is why I asked ! Having stated that the identical code works fine on the RPi 3, but fails on the RPi 4, I really don't think the clarification (or the question) was necessary. Do you have any suggestion as to how I can try to get this issue resolved, because I'd rather not have to tell my use...
by RichardRussell
Fri Aug 09, 2019 3:37 pm
Forum: Advanced users
Topic: glLogicOp(GL_OR) not working on Raspberry Pi 4?
Replies: 10
Views: 538

Re: glLogicOp(GL_OR) not working on Raspberry Pi 4?

PeterO wrote:
Fri Aug 09, 2019 3:10 pm
Are you using openGL or openGL ES code ?
'Full' OpenGL (which is why I'm using the VC4 driver of course). OpenGL ES2 doesn't support the glLogicOp() function at all.
by RichardRussell
Fri Aug 09, 2019 2:51 pm
Forum: Advanced users
Topic: glLogicOp(GL_OR) not working on Raspberry Pi 4?
Replies: 10
Views: 538

glLogicOp(GL_OR) not working on Raspberry Pi 4?

This is a strange one. I have an application which contains the following code: glEnable (GL_COLOR_LOGIC_OP) ; glLogicOp (GL_OR) ; // GL_AND and GL_XOR are also used This works as expected on the RPi 3B (with the VC4 GL driver enabled) using Raspbian Jessie, Stretch or Buster. However, according to ...
by RichardRussell
Sun Aug 04, 2019 9:12 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 35090

Re: Introduction to BBC BASIC

and in this case also of the normals which are used for lighting On the subject of normals, it is normal for normals to need to be normalised! That is, usually the normal vector needs to be of unit length. This can be very conveniently arranged by combining a couple of BBC BASIC features, as follow...
by RichardRussell
Sat Aug 03, 2019 9:23 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 35090

Re: Introduction to BBC BASIC

I'm still all at sea trying to work out the subscripting for a simple 2d rotation matrix. BBC BASIC needs it dimensioned precisely, where ANSI BASIC tends to do it for you It's complicated by there often being a choice of two alternatives: having the rotation matrix as the second term in the dot pr...
by RichardRussell
Thu Aug 01, 2019 12:52 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 35090

Re: Introduction to BBC BASIC

BBC BASIC has never supported this option: all arrays have zero-based indices. Just to expand on that a little, BASICs which support the OPTION BASE stetement or equivalent usually implement DIM as follows: OPTION BASE 0 DIM a(4) : REM Array has 4 elements with indices 0, 1, 2, 3 OPTION BASE 1 DIM ...
by RichardRussell
Thu Aug 01, 2019 12:15 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 35090

Re: Introduction to BBC BASIC

I was a bit surprised that PRINT a(1) prints '2'. The BASIC you were using probably has the OPTION BASE statement which allows you to specify whether the array indices begin at 0 or 1, with it defaulting to OPTION BASE 1. BBC BASIC has never supported this option: all arrays have zero-based indices...
by RichardRussell
Wed Jul 31, 2019 11:17 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 35090

Re: Introduction to BBC BASIC

In another thread the matter of arrays in BASIC has been discussed. It is interesting to note that some of the very earliest BASICs supported 'whole array' operations using the MAT keyword. For example the statement MAT B = A would copy every element of the array A() into the corresponding element o...
by RichardRussell
Fri Jul 26, 2019 12:47 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 59841

Re: ScriptBasic

hippy wrote:
Fri Jul 26, 2019 12:20 pm
when there is no option to get those account names back ?
What makes you think there is no such option in phpBB? As far as I am aware an admin with the right privileges can do that:
unban.png
unban.png (43.62 KiB) Viewed 2235 times
by RichardRussell
Fri Jul 26, 2019 8:22 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 59841

Re: ScriptBasic

I don't think you will find any ScriptBasic posts after the 20th until my personal account was disabled. Just to say, in this specific case you have my full support. I suggest you take the issue to a private discussion with an administrator who has the authority to sort it out (I am confident that ...
by RichardRussell
Thu Jul 25, 2019 4:27 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 35090

Re: Introduction to BBC BASIC

RichardRussell wrote:
Thu Jul 25, 2019 2:51 pm
This has a rather risqué Easter Egg, can you find it?!
Try not to cheat by looking at the code! Adding an Easter Egg to a short program which is published in source form is a whole new level of stupidity (not that I've been silly enough to draw attention to it with a comment).
by RichardRussell
Thu Jul 25, 2019 2:51 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 35090

Re: Introduction to BBC BASIC

I have released version 1.05a of BBC BASIC for SDL 2.0 , the cross-platform programming language for Windows, MacOS, Linux, Raspbian (Raspberry Pi), Android and iOS. The changes in this version are as follows: BASIC Interpreter / Run Time Engine Fixed a bug causing MOUSE and graphics coordinates to ...
by RichardRussell
Tue Jul 23, 2019 2:44 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 35090

Re: Introduction to BBC BASIC

Maybe it's worth adding something like REFRESH 0 / REFRESH 1 My hands are tied because of the way SDL2/OpenGL work. The renderer is created with the SDL_RENDERER_PRESENTVSYNC flag so screen refreshes are always synchronised with vsync. I would have done the same in BB4W had there been any straightf...
by RichardRussell
Tue Jul 23, 2019 1:27 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 35090

Re: Introduction to BBC BASIC

Why hanoi.bbc in bbcsdl for Windows is about 10 times slower than in bbcwdem6 for Windows? It's because of the *REFRESH command in PROCHANOI(). In BBC BASIC for Windows *REFRESH sets a flag to indicate that the screen should be updated at the next opportunity, and then returns immediately. In BBC B...
by RichardRussell
Tue Jul 23, 2019 1:12 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 35090

Re: Introduction to BBC BASIC

IIRC the original BBC basic I and II would only accept COLOUR. Maybe. When I say "all versions" I mean all current versions, i.e. all versions that will run on today's hardware. I know a few people still play with those early versions, mostly in emulation, but they hold no interest for me and I ten...
by RichardRussell
Tue Jul 23, 2019 10:14 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 35090

Re: Introduction to BBC BASIC

Speaking of colour, I understand there was an American edition of BBC Basic such that the COLOUR statement appeared as COLOR when the exact same tokenised source code was loaded into the editor. That's right. All versions of BBC BASIC will accept either COLOR or COLOUR on input (or when loading a p...
by RichardRussell
Mon Jul 22, 2019 10:08 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 35090

Re: Introduction to BBC BASIC

Support left to right or right to left but not both at the same time. I'm not sure that I understand what you mean. Every programming language that I know of uses an appproximation of English for its source code, something which I for one am pleased about! Left-to-right text is therefore enshrined ...
by RichardRussell
Mon Jul 22, 2019 7:29 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 35090

Re: Introduction to BBC BASIC

If you have bidi support you can write code like this: Because BBC BASIC is tokenised, so characters with the high bit set represent keywords, you can't use Unicode for variable or function names but only in quoted strings, comments, DATA statements etc. Personally I don't think that's a bad thing.
by RichardRussell
Mon Jul 22, 2019 5:57 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 35090

Re: Introduction to BBC BASIC

Heater wrote:
Mon Jul 22, 2019 5:08 pm
If it's a significant piece of code and it works well and you want to share it then it matters not what people say. The code speaks for itself.
But if it has nothing to do with BBC BASIC, can you discuss it in another thread, please? I'd like my thread back!
by RichardRussell
Mon Jul 22, 2019 4:25 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 35090

Re: Introduction to BBC BASIC

bidi languages with Unicode rendering If I can use that as an excuse to drag this thread, kicking and screaming, back on topic, something that I've not (yet) attempted to support is bi-directional text in the SDLIDE code editor. Support for Unicode (UTF-8) is there, so if you include Arabic or Hebr...
by RichardRussell
Mon Jul 22, 2019 1:18 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 35090

Re: Introduction to BBC BASIC

I cannot see why most of the members here are making such a fuss about a piece of software they will never be able to use. I can't speak for "most of the members" but as far as I am concerned I was responding to the suggestion that it might be possible to write an automated conversion tool that wou...
by RichardRussell
Sun Jul 21, 2019 9:45 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 35090

Re: Introduction to BBC BASIC

Make sure to download the dependencies first. Install them and skip any warnings. You have to be kidding. There's no way I am going to risk installing a dozen or so ancient DLLs and OCXs, especially if I am expected to do so by running an unsigned Setup.exe which may request elevation under UAC! Th...
by RichardRussell
Sun Jul 21, 2019 11:01 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 59841

Re: ScriptBasic

rpdom wrote:
Sun Jul 21, 2019 4:57 am
That is a very bold statement. I see almost nothing but x86 PC systems almost everywhere I go.
I assume David's comment was tongue-in-cheek. He must know that Windows is by far the most popular OS for desktops and laptops (87.6% share according to Wikipedia).
by RichardRussell
Sun Jul 21, 2019 10:55 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 59841

Re: ScriptBasic

As far as I know there is no Brandy BASIC on RISC OS. Of course there is, I'm astonished you didn't know. Indeed at the Brandy home page it states that the RISC OS implementation "is the most complete version of the interpreter... It runs under RISC OS 3, 4 and 5. Versions are supplied to run 'out ...
by RichardRussell
Sun Jul 21, 2019 9:31 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 35090

Re: Introduction to BBC BASIC

Heater wrote:
Sun Jul 21, 2019 5:47 am
Can you post that file here perhaps we can work something out from it.
The official BasAlt website appears to be here but the links all point back to the same page or lead to a 404 :(

Go to advanced search