Search found 689 matches

by UEZ
Mar 08, 2021 8:08
Forum: Tips and Tricks
Topic: Zip/Unzip on Windows Without Dependencies
Replies: 4
Views: 89

Re: Zip/Unzip on Windows Without Dependencies

Getting error when trying to compile Zip.bas(73) error 42: Variable not declared, __FB_JOIN__ in 'CHECK_HR(ComCall(pFactory, CreatePartUri, itemUri, @pFullPartUri))' Zip.bas(79) error 9: Expected expression, found '__FB_JOIN__' in 'FATAL_HR(ComCall(pPartSet, CreatePart, pFullPartUri, "n/a"...
by UEZ
Feb 20, 2021 9:17
Forum: Tips and Tricks
Topic: 2D shadows
Replies: 26
Views: 3030

Re: 2D shadows

@dodicat: your example looks awesome! Thanks for sharing it.

@rest: thanks you, too, for your nice examples.
by UEZ
Feb 20, 2021 9:15
Forum: General
Topic: help w/ Quake fast inv sqrt
Replies: 3
Views: 141

Re: help w/ Quake fast inv sqrt

Here my collection of SQR functions: Function _ASM_Sqr1(n As Single) As Single Asm rsqrtss xmm0, [n] mulss xmm0, [n] movss [Function], xmm0 End Asm End Function Function _ASM_Sqr2(n As Single) As Single Asm fld dword Ptr [n] fsqrt fstp dword Ptr [Function] End Asm End Function 'https://codegolf.stac...
by UEZ
Feb 15, 2021 16:14
Forum: Tips and Tricks
Topic: Guess what the output of this code is?
Replies: 4
Views: 182

Re: Guess what the output of this code is?

What do you think what this output could be? Compile it as console! #Include "fbgfx.bi" Using FB '#Include "fbgfx.bi" must be added! Declare Function LZW_Decode Alias "fb_hDecode" (Byval in_buffer As Any Ptr, Byval in_size As Integer, Byval out_buffer As Any Ptr, Byref ...
by UEZ
Feb 12, 2021 19:54
Forum: Tips and Tricks
Topic: The beauty / magic of math (28 examples) Vol. II + Vol. III - V
Replies: 10
Views: 1091

Re: The beauty / magic of math (28 examples) Vol. II

dafhi wrote:cool! quick feedback .. an error with Tunnel2 GDI.. (vol 3)
Variable not declared, SmoothingModeAntiAlias8x4

Thanks for your feedback.

Seems that gdiplus.bi for x86 is not up-to-date.

Just replace SmoothingModeAntiAlias8x4 with 4 and it should compile, too.
by UEZ
Feb 11, 2021 22:16
Forum: Tips and Tricks
Topic: The beauty / magic of math (28 examples) Vol. II + Vol. III - V
Replies: 10
Views: 1091

Re: The beauty / magic of math (28 examples) Vol. II

Added volume III and IV. I'm too lazy to create two new topics with screenshots but it's worth a look. :-)

If you are interested check out post #1 to download AiO package (source code + compiled executables).
by UEZ
Feb 08, 2021 14:00
Forum: General
Topic: Pentacles
Replies: 71
Views: 3613

Re: Pentacles

@Richard: looks very nice. :-)
by UEZ
Feb 05, 2021 9:01
Forum: General
Topic: Bresenham thick line code
Replies: 0
Views: 226

Bresenham thick line code

I'm trying to convert following Bresenham thick line code to FB but the result isn't what I expect. http://members.chello.at/easyfilter/canvas.html C code: /** * @author Zingl Alois * @date 22.08.2016 * @version 1.2 */ void plotLineWidth(int x0, int y0, int x1, int y1, float wd) { /* plot an anti-al...
by UEZ
Feb 03, 2021 7:44
Forum: Projects
Topic: Soundra, a free modular synthesizer
Replies: 15
Views: 725

Re: Soundra, a free modular synthesizer

Looks great. Do you have some sample files which I can load to see what the tool can do?
I am absolutely not gifted to generate music...^^

Thx.
by UEZ
Feb 01, 2021 21:18
Forum: Tips and Tricks
Topic: 2D shadows
Replies: 26
Views: 3030

Re: 2D shadows

Looks very nice!

Thanks for sharing
by UEZ
Feb 01, 2021 20:25
Forum: Tips and Tricks
Topic: Image=ImageScale(SrcImage,width,height) (8,15,16,24,32 bpp)
Replies: 17
Views: 6388

Re: Image=ImageScale(SrcImage,width,height) (8,15,16,24,32 bpp)

Thanks Joshy but for me it doesn't work or I'm unable to use it properly. ' PutResize(dst,src,x,y,w,h) fast but no filter union FP field=1 as ulong v32 type as ushort l16 as ushort h16 end type end union sub PutResize(byval dst as any ptr, _ byval src as any ptr, _ byval dstX as integer, _ byval dst...
by UEZ
Feb 01, 2021 13:38
Forum: General
Topic: 30% faster exp function
Replies: 5
Views: 229

Re: 30% faster exp function

Thanks for sharing the code! Here my results (FreeBASIC Compiler - Version 1.07.2 (2020-12-25)): x86 (-s console -t 8192): expasm1 time is 1.48 seconds; sum = 3.307103438448332e+300 expasm2 time is 1.06 seconds; sum = 3.307103438448332e+300 FBC exp time is 1.05 seconds; sum = 3.307103438448332e+300 ...
by UEZ
Jan 30, 2021 14:10
Forum: Tips and Tricks
Topic: Image=ImageScale(SrcImage,width,height) (8,15,16,24,32 bpp)
Replies: 17
Views: 6388

Re: Image=ImageScale(SrcImage,width,height) (8,15,16,24,32 bpp)

Download: fbimagescale.zip with 2 tests I's simple without filtering. Joshy ' NewImage = ImageScale(SourceImage,width,height) #include "fbgfx.bi" function ImageScale(s as fb.Image ptr, _ w as integer, _ h as integer) as fb.Image ptr if s =0 then return 0 if s->width <1 then return 0 if s-...
by UEZ
Jan 24, 2021 22:52
Forum: Libraries
Topic: raylib headers
Replies: 83
Views: 8149

Re: raylib headers

@BasicCoder2: Go to C:/FreeBasic/lib/win32 (on your HDD) and delete the file libraylib.a as a first step. The linker is trying to link against an older static build of raylib, that you yourself placed in that folder, for whatever reason. Then, try to compile an example again, with the Win32 DLL on ...
by UEZ
Jan 24, 2021 21:29
Forum: Libraries
Topic: raylib headers
Replies: 83
Views: 8149

Re: raylib headers

@paul doe: I was able to compile and run some of the examples. For some of them, e.g. core_window_flags.bas, I get also error messages: Raylib\examples\core_window_flags.o:fake:(.text+0x4fb): undefined reference to `IsWindowState' ... Raylib\examples\core_window_flags.o:fake:(.text+0xb42): more unde...

Go to advanced search