Search found 593 matches

by RichardRussell
Sat 05 Dec 2020, 12:28
Forum: Graphics and Games
Topic: Draggable handles
Replies: 6
Views: 1463

Re: Draggable handles

How do I display a .jpg picture in SDL? *DISPLAY ( OSCLI "DISPLAY..." ) will display BMPs, GIFs, PNGs and JPGs (at least), but is slow. *MDISPLAY ( OSCLI "MDISPLAY..." ) is faster, but still not great. For your application I was anticipating that you would use the imglib library for maximum speed (...
by RichardRussell
Sat 05 Dec 2020, 11:37
Forum: Announcements
Topic: BBC BASIC for SDL 2.0 version 1.18a released
Replies: 4
Views: 2322

Re: BBC BASIC for SDL 2.0 version 1.18a released

Here's a little test of the speed improvement possible by calling an API function by address (numeric) rather than by name (string), which is made simpler by the SYS() function added in v1.15a: r%% = @memhdc% TIME = 0 FOR I% = 1 TO 10000 SYS "SDL_RenderDrawLine", r%%, RND(600), RND(500), RND(640), R...
by RichardRussell
Sat 05 Dec 2020, 11:14
Forum: Announcements
Topic: BBC BASIC for SDL 2.0 version 1.18a released
Replies: 4
Views: 2322

Re: BBC BASIC for SDL 2.0 version 1.18a released

Please feel no disquiet about posting BBC SDL material here: it clearly lies within the scope of this forum I know it lies within the scope of the forum as currently described, but in practice I don't think any forum members (at least active ones) use BBCSDL or have any real interest in it. I'd sug...
by RichardRussell
Sat 05 Dec 2020, 10:32
Forum: Announcements
Topic: BBC BASIC for SDL 2.0 version 1.18a released
Replies: 4
Views: 2322

Re: BBC BASIC for SDL 2.0 version 1.18a released

I have a feeling I've listed this code before, but either way it illustrates a trivial use of the extension to the PTR() pseudo-variable in BBCSDL v1.18a: PROC0 PTR(PROC0) = PTR(PROC1) PROC0 PTR(PROC0) = PTR(PROC2) PROC0 END DEF PROC0 : ENDPROC DEF PROC1 : PRINT "One" : ENDPROC DEF PROC2 : PRINT "Tw...
by RichardRussell
Fri 04 Dec 2020, 23:41
Forum: Miscellaneous
Topic: Leaving the forum (yet again).
Replies: 10
Views: 2476

Re: Leaving the forum (yet again).

if they are really that offended then maybe they need to get a thicker skin. I think they would claim that they are not personally "offended" but that my presence is damaging the forum and the language, not least by putting off potential new members and users. That is the point which has been made ...
by RichardRussell
Fri 04 Dec 2020, 22:51
Forum: Miscellaneous
Topic: Leaving the forum (yet again).
Replies: 10
Views: 2476

Leaving the forum (yet again).

For at least the third time in recent years, a complaint has been made about my 'behaviour' and 'attitude' and it has been suggested that I should consider leaving the forum "for the good of the community as a whole". On previous occasions I have been persuaded to return after an 'acceptable' period...
by RichardRussell
Fri 04 Dec 2020, 12:23
Forum: Announcements
Topic: BBC BASIC for SDL 2.0 version 1.18a released
Replies: 4
Views: 2322

BBC BASIC for SDL 2.0 version 1.18a released

( I am well aware that these posts anger some members of this forum, because they consider BBC BASIC for SDL 2.0 to be irrelevant. I apologise for once again causing annoyance, but the number of places where I can legitimately post this information is diminishing all the time. ) I've released versio...
by RichardRussell
Thu 03 Dec 2020, 17:12
Forum: Mathematics
Topic: Trigonometry - inverse...
Replies: 8
Views: 3325

Re: Trigonometry - inverse...

though you CAN do it with ATN. Your original phrase was "can just use ATN", which implies that you don't need to know any additional information, which you do. you just need to check whether the answer is actually "on the right hand side" (i.e. x is positive) and correct. You could equally have sai...
by RichardRussell
Thu 03 Dec 2020, 12:55
Forum: Mathematics
Topic: Trigonometry - inverse...
Replies: 8
Views: 3325

Re: Trigonometry - inverse...

Assuming you know y and x, then you can just use ATN Actually you can't: knowing both y and x means you can determine the angle completely, but ATN takes only one parameter so it gives an ambiguous result. The way to get the angle from y and x is to use the atan2 function, which takes two parameter...
by RichardRussell
Tue 01 Dec 2020, 18:16
Forum: Graphics and Games
Topic: Draggable handles
Replies: 6
Views: 1463

Re: Draggable handles

KenDown wrote:
Sat 28 Nov 2020, 20:36
I doubt similar smoothness could be achieved in BB4W.
So use BBCSDL instead. It has exactly the features you need:
  • GPU-accelerated 2D graphics.
  • GPU-accelerated image resizing.
  • Built-in support for vSync.
resulting in it being both extremely fast and super-smooth.