Search found 479 matches

by jdebord
Feb 10, 2020 7:47
Forum: Game Dev
Topic: Moving on random spline loops with near const speed !
Replies: 8
Views: 448

Re: Moving on random spline loops with near const speed !

Works well with Windows 10 + FB 32 bits

Thanks for this nice demo !
by jdebord
Dec 30, 2019 9:54
Forum: Beginners
Topic: Playing non-file audio
Replies: 16
Views: 559

Re: Playing non-file audio

If I understand correctly : The samples are stored in an array of signed 16-bit integers. The values are -32768 to 32767. There are 65536 possible values. The dynamic is 20*log(65536) ~ 96 dB For stereo the channels L = left and R = right are alterned : channel: L R L R ... L R index: 0 1 2 3 ... n-...
by jdebord
Dec 29, 2019 18:34
Forum: Beginners
Topic: Playing non-file audio
Replies: 16
Views: 559

Re: Playing non-file audio

FBSound is here:

http://shiny3d.de/public/fbsound/fbsound-1.1.zip

See the sample program fbs_create_wave.bas in the `tests` subdirectory.
by jdebord
Dec 26, 2019 7:56
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 390
Views: 80359

Re: FLTK-C-1.3.3 for FreeBASIC

Hello D. J. Peters,

Did you make any progress with the new add-on:

viewtopic.php?f=14&t=24547&start=165#p254486

This seemed to be very promising.
by jdebord
Oct 21, 2019 8:41
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 390
Views: 80359

Re: FLTK-C-1.3.3 for FreeBASIC

Another pixmap example. It may bring back some memories ... #include "fltk-c.bi" dim as zstring ptr croco_xpm(...) => {@"136 64 16 1", _ @"` c #373431", _ @". c #699ca9", _ @"# c #afa875", _ @"a c #47656a", _ @"b c #777146", _ @&q...
by jdebord
Oct 14, 2019 6:54
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 390
Views: 80359

Re: FLTK-C-1.3.3 for FreeBASIC

Nice picture :) I have saved it for my own programs.
by jdebord
Aug 31, 2019 8:35
Forum: Windows
Topic: DEF FN Not Working?
Replies: 2
Views: 3742

Re: DEF FN Not Working?

You can use a macro instead :

Code: Select all

#define fna(x) (4 * (x))


but don't forget the parentheses :)
by jdebord
Aug 12, 2019 7:18
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 390
Views: 80359

Re: FLTK-C-1.3.3 for FreeBASIC

An example using graphic functions (Draw...) and the "extended" window widget: #include "fltk-main.bi" function draw_text cdecl (self as any ptr) as long DrawSetColor FL_WHITE DrawRectFill 0, 0, 300, 300 DrawSetColor FL_BLUE DrawRectFill 10, 10, 130, 80 DrawRectFill 10, 110, 130,...
by jdebord
Aug 11, 2019 7:25
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 390
Views: 80359

Re: FLTK-C-1.3.3 for FreeBASIC

Nice example, but I would rather set ICONSIZE at a value > 32 otherwise the picture extends outside of the button.
by jdebord
Jul 26, 2019 8:02
Forum: General
Topic: Simple Barchart with Dislin error
Replies: 5
Views: 3784

Re: Simple Barchart with Dislin error

Are you sure to have downloaded the Linux distribution ? You should have dislin(...).so and dislin_d(...).so (dislin_d is for double precision)

The .dll files are for Windows.

The Linux distributions are here:

https://www.mps.mpg.de/dislin/linux
by jdebord
Jul 25, 2019 8:39
Forum: Beginners
Topic: Difference between fltk and fltk-c?
Replies: 3
Views: 4432

Re: Difference between fltk and fltk-c?

Aren't they both in C++ ?
by jdebord
Jul 19, 2019 7:01
Forum: Projects
Topic: DOD.bas Dungeon of Doom
Replies: 3
Views: 4999

Re: DOD.bas Dungeon of Doom

You may wish to check Richard Clark's website :

http://users.freebasic-portal.de/rdc/index.html

He has an excellent tutorial "Let's build a roguelike" and several FreeBASIC programs.
by jdebord
Jul 17, 2019 9:06
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 390
Views: 80359

Re: FLTK-C-1.3.3 for FreeBASIC

Glad to see that it works :)

And yes, TRUE and FALSE are already defined in the most recent FB versions.
by jdebord
Jul 17, 2019 6:56
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 390
Views: 80359

Re: FLTK-C-1.3.3 for FreeBASIC

I have already mentioned my calculator program:

viewtopic.php?f=14&t=21548&p=208187#p208187

I have other programs written with FLTK but they are all french versions so I have to modifiy them.

And BTW, yes I use global variables :)
by jdebord
Apr 01, 2019 7:01
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 390
Views: 80359

Re: FLTK C for FreeBASIC Jan 09, 2017

You may try Fl_Redraw (Redraws all widgets) or Fl_WidgetRedraw(mnb) (Redraws a specific widget)

Go to advanced search