Search found 996 matches

by UEZ
May 30, 2024 16:06
Forum: Sources, Examples, Tips and Tricks
Topic: sea foam particle effect
Replies: 2
Views: 260

Re: sea foam particle effect

Looks very nice but I changed the bg to black for better fx - thanks for sharing!
by UEZ
May 18, 2024 10:15
Forum: Sources, Examples, Tips and Tricks
Topic: Simple 2D Ball Collision Demo
Replies: 12
Views: 1104

Re: Simple 2D Ball Collision Demo

I made some progress here but I'm still not satisfied with the result. 'Coded by UEZ build 2024-05-16 beta #cmdline "-gen gcc -Wc -Ofast -Wc -march=native -Wc -funroll-loops -Wc -mfpmath=sse" #include "fbgfx.bi" #include "crt/math.bi" Using FB #define _pi (Acos(-1)) #de...
by UEZ
May 12, 2024 21:07
Forum: General
Topic: Placement of graphics window with Screen
Replies: 7
Views: 904

Re: Placement of graphics window with Screen

It is a little bit complex to list all monitors via WinAPI. When I find some time, I can write an example.
by UEZ
May 12, 2024 17:49
Forum: General
Topic: Placement of graphics window with Screen
Replies: 7
Views: 904

Re: Placement of graphics window with Screen

You can use the Windows API to enumerate all connected monitors and move the window to the appropriate monitor.

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-enumdisplaymonitors
by UEZ
May 10, 2024 14:20
Forum: Sources, Examples, Tips and Tricks
Topic: Simple 2D Ball Collision Demo
Replies: 12
Views: 1104

Re: Simple 2D Ball Collision Demo

Any idea how to rotate the mapped texture of the ball properly? 'Coded by UEZ build 2024-05-10 #include "fbgfx.bi" Using FB #define _pi (Acos(-1)) #define _2pi (2 * Acos(-1)) Function MapCoordinate(i1 As Double, i2 As Double, w1 As Double, w2 As Double, p As Double) As Double '...' Return ...
by UEZ
May 09, 2024 18:10
Forum: Sources, Examples, Tips and Tricks
Topic: Cairo animated spiral
Replies: 15
Views: 1002

Re: Cairo animated spiral

Try to turn off the AV program.
by UEZ
May 07, 2024 7:25
Forum: Sources, Examples, Tips and Tricks
Topic: anti-aliased line comparison (cairo vs mine)
Replies: 7
Views: 956

Re: anti-aliased line comparison (cairo vs mine)

it's ok i didn't either, last post. it's a lot of code. having trouble getting cairo under windows. could be cuz i'm using fbc 1.09, need to update headers here was the error.. (will try again tomorrow) ./cairo.dll: file not recognized: file format not recognized You may have a look here for the DL...
by UEZ
May 06, 2024 19:51
Forum: Sources, Examples, Tips and Tricks
Topic: anti-aliased line comparison (cairo vs mine)
Replies: 7
Views: 956

Re: anti-aliased line comparison (cairo vs mine)

Here a comparison of Cairo AA Line, GDIPlus AA Line, FB Line and FB WU AA Line in one GUI. 'Coded by UEZ - Windows only #include "cairo/cairo.bi" #ifdef __FB_64BIT__ #inclib "gdiplus" #include once "win/gdiplus-c.bi" #else #include once "win/gdiplus.bi" Using ...
by UEZ
Apr 13, 2024 8:15
Forum: Sources, Examples, Tips and Tricks
Topic: Simple 2D Ball Collision Demo
Replies: 12
Views: 1104

Re: Simple 2D Ball Collision Demo

Nice neil. I added to your example to catch and throw the ball around: ' elastic bouncing ball by neil Const w = 1080 Const h = 720 ScreenRes w, h, 32 Dim As Single x, y, vx, vy, radius, mass, gravity, elasticity, friction, px, py x = 20 y = 20 vx = 6 'velocity x vy = 0 'velocity y radius = 35 gravi...
by UEZ
Apr 12, 2024 16:50
Forum: Libraries Questions
Topic: Cairo DLL creation
Replies: 16
Views: 4978

Re: Cairo DLL creation

Both versions are the same. :wink: Are you really sure? .. maybe some (browser) caching issue? or mixup? new https://i.ibb.co/DbG6WpH/image.png old, debug https://i.ibb.co/H20NtS1/image.png (above screenshots are from the x64 builds, but also checked the x86 ones) Also the file size should be signi...
by UEZ
Apr 12, 2024 11:45
Forum: Libraries Questions
Topic: Cairo DLL creation
Replies: 16
Views: 4978

Re: Cairo DLL creation

Both versions are the same. :wink:

I need to learn this compiling stuff...
by UEZ
Apr 12, 2024 10:34
Forum: Libraries Questions
Topic: Cairo DLL creation
Replies: 16
Views: 4978

Re: Cairo DLL creation

Hi St_W, thanks for the DLLs but it doesn't work because of missing import DLLs which are not default system DLLs. x86: VCRUNTIME140D.dll ucrtbased.dll x64: VCRUNTIME140D.dll VCRUNTIME140_1D.dll ucrtbased.dll Can those functions in these DLLs integrated? Edit: runs properly when copying both missing...
by UEZ
Apr 11, 2024 12:15
Forum: Sources, Examples, Tips and Tricks
Topic: Simple 2D Ball Collision Demo
Replies: 12
Views: 1104

Re: Simple 2D Ball Collision Demo

Billiard opening simulation: 'Coded by UEZ build 2024-04-12 #include "fbgfx.bi" Using FB #define _pi (Acos(-1)) Function _Dist(x1 As Double, y1 As Double, r1 As Double, x2 As Double, y2 As Double, r2 As Double) As Boolean Return Sqr((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)) < (r1 + r2...
by UEZ
Apr 11, 2024 6:33
Forum: Sources, Examples, Tips and Tricks
Topic: Simple 2D Ball Collision Demo
Replies: 12
Views: 1104

Re: Simple 2D Ball Collision Demo

Code corrected - thanks for your feedback.
by UEZ
Apr 10, 2024 20:53
Forum: Sources, Examples, Tips and Tricks
Topic: Simple 2D Ball Collision Demo
Replies: 12
Views: 1104

Simple 2D Ball Collision Demo

A simple 2D ball collision incl. mass demo FB Gfx lib : 'Coded by UEZ build 2024-04-10 #include "fbgfx.bi" Using FB Function Rnd2(min As Double, max As Double = &hFFFFFFFF) As Double Dim As Double Rand = Rnd() If max = &hFFFFFFFF Then Return Rand * min If min > max Then Swap min, m...