If you're using PBs OpenGLgadget(), then you could try the code below (from Win x64, but may work in Linux):
OpenWindow(0,0,0,640,480,"")
OpenGLGadget(0,0,0,640,480)
Define version.s, major.l, minor.l
version = PeekS(glGetString_(#GL_VERSION),-1,#PB_Ascii)
#GL_MAJOR_VERSION = $821B
#GL_MINOR ...
Search found 259 matches
- Sat Nov 22, 2025 9:17 am
- Forum: 3D Programming
- Topic: opengl version
- Replies: 3
- Views: 377
- Thu Oct 30, 2025 2:50 pm
- Forum: Tricks 'n' Tips
- Topic: AddPathSpline
- Replies: 15
- Views: 1646
Re: AddPathSpline
Users such as Idle & pf have recently been making large strides towards providing other PB users with the ability to use modern (motion) graphics in their projects. Rendering closed paths (such as the one pf has presented here) form an important part of this.
See what Idle is working on here: https ...
See what Idle is working on here: https ...
- Thu Oct 30, 2025 1:47 pm
- Forum: Tricks 'n' Tips
- Topic: AddPathSpline
- Replies: 15
- Views: 1646
Re: AddPathSpline
That's today's youth's common assumption and that's why even as far as technology has advanced things are still clunky. I'll run some tests again and see if you're right.
Don't get me wrong, I still use lookup tables for some computationally-heavy image processing (as it's doing millions of ...
- Thu Oct 30, 2025 11:24 am
- Forum: Tricks 'n' Tips
- Topic: AddPathSpline
- Replies: 15
- Views: 1646
Re: AddPathSpline
@pf - Thanks for posting.
I get it. I was making things work in code before the Internet so i don't know anything. I'll ignore your posts from now on and won't share how bits and bytes work down below.
Quite a disappointing attitude really; There are times that our age and past experiences can ...
I get it. I was making things work in code before the Internet so i don't know anything. I'll ignore your posts from now on and won't share how bits and bytes work down below.
Quite a disappointing attitude really; There are times that our age and past experiences can ...
- Thu Oct 30, 2025 10:42 am
- Forum: Coding Questions
- Topic: Avoid literal string 8192 limit
- Replies: 9
- Views: 786
Re: Avoid literal string 8192 limit
Not quite; You are concatenating literal strings here & the concatenated string is no longer a 'literal string' by definition.minimy wrote: Thu Oct 30, 2025 1:40 am We can now have a literal string larger than 8192 characters. The example shows one from 24576.
- Sun Oct 12, 2025 12:38 pm
- Forum: Coding Questions
- Topic: Slow code !! Why ?
- Replies: 10
- Views: 837
Re: Slow code !! Why ?
The mouse movements are being caught in a queue as you're only processing one OS event per frame, whereas you should be handling all of them.
Replace:
Event = WaitWindowEvent()
With:
Repeat
Event = WindowEvent()
Select Event
Case #PB_Event_CloseWindow : End
EndSelect
Until Event = 0
Replace:
Event = WaitWindowEvent()
With:
Repeat
Event = WindowEvent()
Select Event
Case #PB_Event_CloseWindow : End
EndSelect
Until Event = 0
- Wed Oct 08, 2025 9:04 am
- Forum: Bugs - Windows
- Topic: PB 6.30 b3 x64 - Debugger error.
- Replies: 5
- Views: 1612
Re: PB 6.30 b3 x64 - Debugger error.
Did you not read my second post? How is that not a bug?Fred wrote: Wed Oct 08, 2025 7:56 am Closing a console on Windows kill the process abruptly, that's why the debugger is complaining.
- Wed Oct 08, 2025 7:14 am
- Forum: Bugs - Windows
- Topic: PB 6.30 b3 x64 - Debugger error.
- Replies: 5
- Views: 1612
Re: PB 6.30 b3 x64 - Debugger error.
Thanks for your input mk, but the code below doesn't present the error, what's the difference?
OpenConsole()
DisableDebugger
Input()
It's a bug when opening a console window whilst the debugger is disabled in code.
This code presents a 'No console is currently opened' error ...
OpenConsole()
DisableDebugger
Input()
It's a bug when opening a console window whilst the debugger is disabled in code.
This code presents a 'No console is currently opened' error ...
- Tue Oct 07, 2025 1:18 pm
- Forum: Bugs - Windows
- Topic: PB 6.30 b3 x64 - Debugger error.
- Replies: 5
- Views: 1612
PB 6.30 b3 x64 - Debugger error.
Closing the console window causes a 'The debugged executable quit unexpectedly' error:
Code: Select all
DisableDebugger
OpenConsole()
Input()
- Tue Oct 07, 2025 12:42 pm
- Forum: Tricks 'n' Tips
- Topic: Lottie animations - [x64][x86]
- Replies: 5
- Views: 1093
Re: Lottie animations - [x64][x86]
Wow, this is great :!:
I'd never heard about lottie files until now - it turns out that I had a number of them already stored locally as Microsoft uses them.
I modified your module to allow for rendering into a canvas gadget as the image gadget was flickering:
In your CreateAnimation ...
I'd never heard about lottie files until now - it turns out that I had a number of them already stored locally as Microsoft uses them.
I modified your module to allow for rendering into a canvas gadget as the image gadget was flickering:
In your CreateAnimation ...
- Mon Oct 06, 2025 2:31 pm
- Forum: Coding Questions
- Topic: Why are ValF & ValD so slow?
- Replies: 27
- Views: 2267
Re: Why are ValF & ValD so slow?
Both ValF & ValD are much quicker for me now Fred, thanks a lot.
- Mon Oct 06, 2025 2:17 pm
- Forum: Bugs - Windows
- Topic: ScreenGadget bugs
- Replies: 22
- Views: 4166
Re: ScreenGadget bugs
No crashes to report here on x64.
I echo Bisonte's sentiment that a simple list of the new commands, parameters & flags would be really useful in testing.
A few points regarding the ScreenGadgetMultipleWindow.pb sample:
The progress bars have a cosmetic issue when the values are down towards the ...
I echo Bisonte's sentiment that a simple list of the new commands, parameters & flags would be really useful in testing.
A few points regarding the ScreenGadgetMultipleWindow.pb sample:
The progress bars have a cosmetic issue when the values are down towards the ...
- Mon Oct 06, 2025 1:48 pm
- Forum: Announcement
- Topic: PureBasic 6.30 beta 5 is ready !
- Replies: 136
- Views: 28601
Re: PureBasic 6.30 beta 3 is ready !
Thanks for the updates - The new ScreenGadget library looks like it could be a great new edition, very cool 
- Mon Oct 06, 2025 8:02 am
- Forum: Coding Questions
- Topic: atof Replacement for ValD
- Replies: 7
- Views: 952
Re: atof Replacement for ValD
atof() doesn't work for me Oliver, I think it could be a 64 bit compatibility issue.
wtof() works though, and as this doesn't require the ascii conversion it's an order of magnitude faster. A downside for me was that it didn't handle conversion of PBs Binary (%) or Hexadecimal ($) prefixed strings.
wtof() works though, and as this doesn't require the ascii conversion it's an order of magnitude faster. A downside for me was that it didn't handle conversion of PBs Binary (%) or Hexadecimal ($) prefixed strings.
- Fri Oct 03, 2025 12:29 pm
- Forum: Coding Questions
- Topic: Why are ValF & ValD so slow?
- Replies: 27
- Views: 2267
Re: Why are ValF & ValD so slow?
Code: Select all
This code is dangerous...
This wasn't a 'Tricks 'n' Tips' post...