Search found 576 matches

by jamirokwai
Sun Apr 14, 2024 6:19 pm
Forum: Tricks 'n' Tips
Topic: atomic web server threads
Replies: 75
Views: 5027

Re: atomic web server threads

Hi Idle, great work! For a few years now, I am looking for a decent way to remove electron and other blown up solutions for local webpages from my workflow. This seems to be it! Thanks for the work. Really looking forward for things like SSL and GZIP! I tried to download the code via "Get Code&...
by jamirokwai
Tue Feb 27, 2024 11:56 am
Forum: Feature Requests and Wishlists
Topic: Expose more MiniAudio-Functions
Replies: 7
Views: 894

Re: Expose more MiniAudio-Functions

I copied the libmpminiaudio.a, added the full path to it and tried again. Now PB throws this error ld: warning: ignoring duplicate libraries: '-lm', '-lpthread', '/Applications/PureBasic/PureBasic 6.04 arm.app/Contents/Resources/compilers/debugger.a', '/Applications/PureBasic/PureBasic 6.04 arm.app/...
by jamirokwai
Tue Feb 27, 2024 8:41 am
Forum: Feature Requests and Wishlists
Topic: Expose more MiniAudio-Functions
Replies: 7
Views: 894

Re: Expose more MiniAudio-Functions

Hi Idle and Infratec,

wow, great news!

I tried on a Mac M2 with PB 6.10 beta 6. This raised an error:

Code: Select all

clang: error: no such file or directory: 'miniaudio.lib'
by jamirokwai
Fri Feb 23, 2024 9:53 am
Forum: Bugs - Mac OSX
Topic: Different font size Mac OS <> Windows
Replies: 12
Views: 4992

Re: Different font size Mac OS <> Windows

Don't want to add more fuzz here, but did you try to use a custom TTF with RegisterFontFile() and check the sizes? The base fonts like Arial, Helvetica, Times, etc. may not be the same files, but different implementations as well on Linux, MacOS, Windows. I don't code on windows anymore and do not h...
by jamirokwai
Fri Feb 16, 2024 9:17 pm
Forum: Applications - Feedback and Discussion
Topic: simple oil paint simulator
Replies: 5
Views: 546

Re: simple oil paint simulator

Wow. Nice! Great work :-)
by jamirokwai
Thu Feb 01, 2024 1:49 pm
Forum: Coding Questions
Topic: Vector Drawing + one point
Replies: 14
Views: 914

Re: Vector Drawing + one point

ChrisR wrote: Thu Feb 01, 2024 1:21 pm The result with the center and angles, above, is not really optimal, I continued with Stargate's idea here.
Wow, ChrisR. Thanks a lot, that looks and works much better!
by jamirokwai
Tue Jan 30, 2024 3:08 pm
Forum: Coding Questions
Topic: Vector Drawing + one point
Replies: 14
Views: 914

Re: Vector Drawing + one point

Thanks for all your help. Here is my approach to the problem with angles, like ChrisR proposed. Sometimes, the lines will jump, usually at around 15 or more points. Not sure why, but I will investigate further. The angle im my polygon_struct is for easy sorting :-) EnableExplicit Structure polygon_p...
by jamirokwai
Mon Jan 29, 2024 1:41 pm
Forum: Coding Questions
Topic: Vector Drawing + one point
Replies: 14
Views: 914

Re: Vector Drawing + one point

I have a question about how you choose where the point is added. In the pictures and example you laid out, you had five five points in clockwise order around the edge of the polygon with the first point being p0(100,100). You added a new point and said that it should be added between points 2 &...
by jamirokwai
Mon Jan 29, 2024 10:32 am
Forum: Coding Questions
Topic: Vector Drawing + one point
Replies: 14
Views: 914

Re: Vector Drawing + one point

So, the distances work (kind of :-)) The first two added points look great, but the last one screws it up. EnableExplicit Structure polygon_point_struct id.w x.w y.w EndStructure Global NewList polygons.polygon_point_struct() Global event Procedure MakePolygons() AddElement(polygons()) With polygons...
by jamirokwai
Mon Jan 29, 2024 7:22 am
Forum: Coding Questions
Topic: Vector Drawing + one point
Replies: 14
Views: 914

Re: Vector Drawing + one point

jamirokwai wants to add a polygon corner in such a way that the polygon keeps convex or at least a polygon without intersections. Yes, that's it. See the images as well. @jamirokwai: You can calculate the distance between the new point and all other polygon point pairs and check, for which pair the...
by jamirokwai
Mon Jan 29, 2024 7:20 am
Forum: Coding Questions
Topic: Vector Drawing + one point
Replies: 14
Views: 914

Re: Vector Drawing + one point

For me it's not 100% clear what you want to achieve. Can you show a drawing what result you expect? Sure. I've been trying to wrap my head around Jarvis and Graham. Maybe, it was too late on a busy Sunday, but I couldn't catch it :-) This is the original polygon: https://joerg-burbach.de/pb_files/0...
by jamirokwai
Sun Jan 28, 2024 10:05 pm
Forum: Coding Questions
Topic: Vector Drawing + one point
Replies: 14
Views: 914

Vector Drawing + one point

Hi there, I am trying to create some polygon-drawings using a canvas and the vector-lib. In the following code, I add a few points, creating a white polygon on a black background. So far so good. After clicking once in the window, a new point will be added to the bottom right. So far so good. But: I...
by jamirokwai
Mon Jan 22, 2024 5:05 pm
Forum: Game Programming
Topic: SGL (Simple GL)
Replies: 39
Views: 7466

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 jamirokwai
Mon Jan 22, 2024 1:56 pm
Forum: Game Programming
Topic: SGL (Simple GL)
Replies: 39
Views: 7466

Re: SGL (Simple GL)

Hi Luis,

looks great! I'd be interested to work with this library :-)
Do you think, a MacOS-version would be a lot of work?
by jamirokwai
Sun Jan 21, 2024 1:36 pm
Forum: Feature Requests and Wishlists
Topic: Expose more MiniAudio-Functions
Replies: 7
Views: 894

Expose more MiniAudio-Functions

HI Fred, after reading the docs of Miniaudio, I'd like to propose some more things: - expose the MP3-decoder to use it with UseMP3Decoder() - expose the generation functions for sine, etc - expose the functions for effects and such - expose the possibilities of the ring buffer These four things woul...