Search found 1298 matches

by dafhi
Jan 29, 2020 15:29
Forum: General
Topic: c++ inline
Replies: 2
Views: 36

c++ inline

i'm wondering what would FB's version of this be

Code: Select all

class vec3 {
        inline vec3& operator+=(const vec3 &v2);
by dafhi
Jan 28, 2020 14:08
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 1803

Re: Windows graphics tutorial

DJP when no aa i see 1.87 sec Sub RenderSpheres(byval spheres as tSphere ptr ptr, byval nSpheres as integer) 'dim as ulong pixelRed,pixelGreen,pixelBlue dim as integer iWidth=640,iHeight=400 'screeninfo iWidth,iHeight:iWidth*=0.8:iHeight*=0.8 screenres iWidth,iHeight,32 windowtitle "render &quo...
by dafhi
Jan 28, 2020 13:05
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 1803

Re: Windows graphics tutorial

mr. doe your "wulines" look very good. i might have to use them 42 fps on my lines #include once "fbgfx.bi" #define def #define #undef int def int as Integer def sng as single def flr(x) _ '' floor() by Stonemonkey (((x)*2.0-0.5)shr 1) '#include "inc/aaline.bas" ' ---- ...
by dafhi
Jan 28, 2020 3:31
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 1803

Re: Windows graphics tutorial

your demo. -gen gcc -O 3 71 fps #include once "fbgfx.bi" #define def #define #undef int def int as Integer def sng as single def flr(x) _ '' floor() by Stonemonkey (((x)*2.0-0.5)shr 1) #define pixel_r( c ) ( culng( c ) shr 16 and 255 ) #define pixel_g( c ) ( culng( c ) shr 8 and 255 ) #def...
by dafhi
Jan 28, 2020 1:40
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 1803

Re: Windows graphics tutorial

yow! paul doe - the trickiest pixel quad project for me was winamp "melt" visualizer. D.J.Peters - thanks for that! another to add to the ol' collection [update] paul doe - I'll see if i can compare your aa lines speed using my Alpha256 macro. It usually takes me a long time ;) [update] i ...
by dafhi
Jan 27, 2020 1:52
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 1803

Re: Windows graphics tutorial

thanks dodicat!

@hurtado thanks for sharing! the intersection from scratchapixel looks optimized
by dafhi
Jan 24, 2020 4:21
Forum: Tips and Tricks
Topic: Heapsort, up/down, integer, with Tagged array
Replies: 5
Views: 269

Re: Heapsort, up/down, integer, with Tagged array

hmm. running a speed comp on your qs, i'm seeing about 1.5% gain var i=l: j=r '' shared var j While I <= J While a(I)dot direction a(l) dot:I+=1:Wend While a(l) dot direction a(J)dot:J-=1:Wend If I<J Then Swap a(I),a(J) I -= i<=j J += i<=j wend [update] your original is 1% faster w/ few unique heres...
by dafhi
Jan 23, 2020 0:55
Forum: Tips and Tricks
Topic: Heapsort, up/down, integer, with Tagged array
Replies: 5
Views: 269

Re: Heapsort, up/down, integer, with Tagged array

dodicat

your qs

Code: Select all

Swap array(I)dot,array(J)dot

should be

Code: Select all

Swap array(I),array(J)
by dafhi
Jan 22, 2020 4:31
Forum: Projects
Topic: FreeBasic Framework
Replies: 27
Views: 1361

Re: FreeBasic Framework

.. Since colors are ordered by perceived luminance , you can create some cool gradients/effects that are very hard to do with other color ordering models. It's also quite useful for UI tasks, such as ensuring some text remains visible regardless of its background color. https://www.openprocessing.o...
by dafhi
Jan 22, 2020 3:52
Forum: Projects
Topic: FreeBasic Framework
Replies: 27
Views: 1361

Re: FreeBasic Framework

i love it
by dafhi
Jan 22, 2020 3:13
Forum: Projects
Topic: FreeBasic Framework
Replies: 27
Views: 1361

Re: FreeBasic Framework

HCY. oi
by dafhi
Jan 19, 2020 1:53
Forum: Projects
Topic: FreeBasic Framework
Replies: 27
Views: 1361

Re: FreeBasic Framework

"graphics" and "interaction" examples are working fine now
by dafhi
Jan 18, 2020 0:18
Forum: Projects
Topic: FreeBasic Framework
Replies: 27
Views: 1361

Re: FreeBasic Framework

dafhi wrote:tried all folders. "interaction" also gives
..

graphics and interaction the only 2 problematic. i'll try on my other laptop sometime
by dafhi
Jan 17, 2020 22:54
Forum: Projects
Topic: FreeBasic Framework
Replies: 27
Views: 1361

Re: FreeBasic Framework

condsider it resolved then. maybe i'll have an a-ha moment .. i'm just running the 2 examples

Go to advanced search