Search found 3464 matches

by luis
Wed Feb 21, 2024 12:42 pm
Forum: Coding Questions
Topic: OpenGL dot / cross Functions
Replies: 10
Views: 340

Re: OpenGL dot / cross Functions

PB imports the legacy part of the OpenGL function, up to version 1.1. PB also creates a context in compatibility mode, where your OpenGL driver makes available all the OpenGL functions (modern and legacy) to be used together. This is true on Linux and Windows, there are limitations under MacOS becau...
by luis
Mon Jan 22, 2024 4:36 pm
Forum: Game Programming
Topic: SGL (Simple GL)
Replies: 39
Views: 6974

Re: SGL (Simple GL)

Do you think, a MacOS-version would be a lot of work? Hi, it wouldn't be a lot of work, you need to compile GLFW for macOS (wasn't OS X just a while ago ? they can't stick to a name) and update the glfw importer (contained in SGL). Plus, you need to double check the functions in SGL dealing with sy...
by luis
Sat Jan 13, 2024 5:22 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 283
Views: 36195

Re: PureBasic 6.10 beta 2 - Xmas Release - is out !

Updated: Reworked the Sound library to use MiniAudio on OS X and Linux (SDL dependency is no more requiered for sounds on Linux).
Thanks, but why you didn't use MiniAudio on Windows too ?
On Windows the audio uses DirectSound ?
by luis
Wed Jan 10, 2024 10:28 pm
Forum: Announcement
Topic: i2pdf - image to pdf
Replies: 38
Views: 12595

Re: i2pdf - image to pdf

I've added support for the A2 paper format (by request), cleaned up the helpfile and updated the source to make it compatible with PB 6.03. The new version 1.0.52 now include the source, you'll find it in the zip file in the first post. The source is not a good example of PB programming as I wrote i...
by luis
Sat Jan 06, 2024 11:44 pm
Forum: Game Programming
Topic: SGL (Simple GL)
Replies: 39
Views: 6974

Re: SGL (Simple GL)

Wouldn't it be possible to use your imgui module with the current ogre3d in purebasic? Maybe you forgot but you asked the same thing in July :) I paste my previous answer because nothing is changed It's just a demo of how it's possible to implement a IMGUI in OpenGL, it's not remotely complete or r...
by luis
Thu Dec 28, 2023 4:40 pm
Forum: Announcement
Topic: i2pdf - image to pdf
Replies: 38
Views: 12595

Re: i2pdf - image to pdf

Hi to all, I've put the program (1.0.51) online again and updated the first post with a working link.
by luis
Wed Dec 27, 2023 5:33 pm
Forum: General Discussion
Topic: [SOLVED] Integer calc. variation between ASM and C backend
Replies: 4
Views: 547

Re: [SOLVED] Integer calc. variation between ASM and C backend

The two backends must give the same results, the source code is the same, the language is the same,
If this does not happen it's a bug and the inconsistency should be resolved.

That being said, using PB 6.03 I always get the same result: 2477196
by luis
Wed Dec 27, 2023 4:22 pm
Forum: Announcement
Topic: i2pdf - image to pdf
Replies: 38
Views: 12595

Re: i2pdf - image to pdf

acreis wrote: Wed Dec 27, 2023 12:25 pm To be true, this excellent tool presented Purebasic to me!
Well, I'm happy to learn that :)

The current version I'm using is 1.51, I'll give you a link through PM where you can download it and test it.
I'm using it with Win10 x64 and it works for me.
by luis
Sat Dec 09, 2023 12:56 pm
Forum: Coding Questions
Topic: Why do not use GOTO inside a Select Statement?
Replies: 15
Views: 1202

Re: Why do not use GOTO inside a Select Statement?

"GoTo is the worst basic language instruction" ouch, I think Break followed by a number is a good contender ! "but the code becomes more and more spaghetti" That's true if you use GOTO to jump back and forth or for looping, also if you jump very far away. Then the code may become...
by luis
Mon Dec 04, 2023 12:48 pm
Forum: Game Programming
Topic: SGL (Simple GL)
Replies: 39
Views: 6974

Re: SGL (Simple GL)

Hi pjay, thank you, I know the examples require still a lot of setup code, even if less compared to naked OpenGL, but this library is to simplify OpenGL programming, nothing more. My intention was to make a sort of GLFW but easily usable in PB (offering keyboard and mouse input, windowing, etc) whil...
by luis
Sun Nov 26, 2023 2:23 pm
Forum: 3D Programming
Topic: Demo 3D - Shoal of fish V2
Replies: 35
Views: 3656

Re: Demo 3D - Shoal of fish V2

Very nice and nice procedurally generated fishes :)
by luis
Thu Nov 23, 2023 4:32 pm
Forum: Game Programming
Topic: SGL (Simple GL)
Replies: 39
Views: 6974

Re: SGL (Simple GL)

Hi.
Pretty good thanks :wink:
by luis
Tue Sep 26, 2023 12:06 am
Forum: Coding Questions
Topic: RegisterFontFile() True Type Font vs Open Type Font
Replies: 2
Views: 213

Re: RegisterFontFile() True Type Font vs Open Type Font

On Windows I have used RegisterFontFile() with open type fonts, so I can confirm it works.

BTW: have you encountered this bug viewtopic.php?t=81284 with RegisterFontFile() on Linux ?
by luis
Mon Sep 25, 2023 11:26 pm
Forum: Coding Questions
Topic: [solved] OPTIMIZER-Flag - What asm optimizations?
Replies: 8
Views: 486

Re: OPTIMIZER-Flag - What asm optimizations?

You should get them to rewrite the wikipedia page to say what you want it to say. :wink: Uh ? Already does that. It makes extensive code-size optimization and allows unconstrained forward referencing It says "code-size" optimization and the second document linked there (number 7) talk abo...
by luis
Mon Sep 25, 2023 11:12 pm
Forum: Coding Questions
Topic: [solved] OPTIMIZER-Flag - What asm optimizations?
Replies: 8
Views: 486

Re: OPTIMIZER-Flag - What asm optimizations?

Yes, that's it, optimizing the size of the code by trying to select the smallest opcodes, for example for the jumps, where you have opcodes for near or far jumps with different sizes. But the ASM code stays the same and it's not optimized in any way. Some comments about this from its forum https://b...