Search found 42 matches

by Haubitze
Jun 19, 2021 7:09
Forum: Beginners
Topic: Enum not working
Replies: 4
Views: 159

Re: Enum not working

try this ENUM ProcessState_e Running Stopped Shutdown Free end enum type process state as ProcessState_e declare constructor() end type constructor process this.state = ProcessState_e.Free end constructor im not sure if it will help but if im using an enum as an "state"-variable then i dec...
by Haubitze
May 19, 2021 20:25
Forum: Tips and Tricks
Topic: Water droplets and ripples effect
Replies: 5
Views: 270

Re: Water droplets and ripples effect

nice to see this again :)

here my versions about this topic.
viewtopic.php?f=7&t=26689&p=247395&hilit=wather+effect#p247395

and yeah thx again @paul doe for the help on this. this was one of my first runs on FreeBASIC.
by Haubitze
Jan 09, 2021 13:30
Forum: Libraries
Topic: raylib headers
Replies: 86
Views: 10953

Re: raylib headers

i have ported the raygui lib so you can fast implement a gui or buttons for games ;)
Image
here the files
https://users.freebasic-portal.de/haubitze/raygui.7z

have fun
by Haubitze
Nov 20, 2020 17:13
Forum: General
Topic: Split 8bit in 4bit
Replies: 26
Views: 1747

Re: Split 8bit in 4bit

union Nibbles as ubyte value type lo : 4 as ubyte hi : 4 as ubyte end type declare function to_sign4bit(x as ubyte) as byte declare function to_usign4bit(x as ubyte ) as ubyte end union function Nibbles.function to_sign4bit(x as ubyte) as byte return (not(x)+1) and &h0f) end function function N...
by Haubitze
Nov 19, 2020 16:40
Forum: General
Topic: Split 8bit in 4bit
Replies: 26
Views: 1747

Re: Split 8bit in 4bit

i gues paul doe's version with union Nibbles as ubyte value type lo : 4 as ubyte hi : 4 as ubyte end type end union dim as Nibbles n = ( &b11110101 ) ? bin( n.value, 8 ) ? bin( n.hi, 4 ) ? bin( n.lo, 4 ) sleep() is the nicest and clean reading version. i will do it the same way...
by Haubitze
Aug 02, 2019 14:32
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 77
Views: 21375

Re: Audio library for FreeBasic - Features

a simple SID playing routine where nice for my project, but i think open and play MP3 files easy where a must have if it is not to mutch work.
also a easy to use 3D sound positioning/playing where a good thing for 3D games.
by Haubitze
Jun 04, 2019 21:27
Forum: Libraries
Topic: MiniB3d for FreeBasic
Replies: 990
Views: 231454

Re: MiniB3d for FreeBasic

thanks angros47, your sample code works with little changes. now i can see sGUI with the intern OpenGL renderer :)
nice side effect now i have ~75 fps, before with 2d.bi only ~30-40 fps :)

By the way nice work to convert OpenB3D to FreeBASIC.
so thx and salute.
by Haubitze
May 30, 2019 21:40
Forum: Tips and Tricks
Topic: Simple Name-Generator
Replies: 6
Views: 6174

Re: Simple Name-Generator

btw: hiddekel(hezekiel,ezechiel) are my favorite "prophet" ;D
by Haubitze
May 30, 2019 19:25
Forum: Tips and Tricks
Topic: Simple Name-Generator
Replies: 6
Views: 6174

Re: Simple Name-Generator

nice one :D
by Haubitze
May 30, 2019 17:53
Forum: Tips and Tricks
Topic: Simple Name-Generator
Replies: 6
Views: 6174

Re: Simple Name-Generator

yes dodicat, mine is also more gobblygook ;D
but yeah similar aproach.

edit @badidea yeahim a german an here is the name Herr Spr not so rare :floet:
by Haubitze
May 30, 2019 14:20
Forum: Tips and Tricks
Topic: Simple Name-Generator
Replies: 6
Views: 6174

Simple Name-Generator

hey there, i was looking for some good namegenerators but all have a list of forenames and so on or using sybils. so i was thinking about that problem an came with my own solution to here. for clearness i used a Martin Luther bible (in german) to generate a list of "frequencys" of followin...
by Haubitze
May 25, 2019 9:25
Forum: Libraries
Topic: MiniB3d for FreeBasic
Replies: 990
Views: 231454

Re: MiniB3d for FreeBasic

hello angros47, now a demo for my problem with the internal 2d renderer for opengl, #Include once "fbgfx.bi" #Include Once "crt.bi" #Include Once "crt/math.bi" #Include Once "math.bi" #Include Once "crt/limits.bi" #Include Once "gl\gl.bi" #...
by Haubitze
May 24, 2019 0:06
Forum: Beginners
Topic: File i/o question.
Replies: 3
Views: 4036

Re: File i/o question.

read the complete line in a string and then split the string you get like this

Code: Select all

a=mid(in,1,50)
b=mid(in,51,50)
c=mid(in,101,10)

then you can convert all these strings to intergers or what else you will. see for that the 'string operations' in the FB-help.
by Haubitze
May 12, 2019 15:14
Forum: Libraries
Topic: MiniB3d for FreeBasic
Replies: 990
Views: 231454

Re: MiniB3d for FreeBasic

hi angros47, i have a question about your 2d fbgfx patch for opengl. if you know i use OpenB3D, i also use sGUI from Muttonhead and i have patched the sGUI to work with the old 2d.bi. the last version of sGUI uses now 32 bit images mostly all cleared to rgba(0,0,0,0) and then painted with sGUI stuff...
by Haubitze
May 10, 2019 16:34
Forum: Libraries
Topic: MiniB3d for FreeBasic
Replies: 990
Views: 231454

Re: MiniB3d for FreeBasic

i made a function to create a spherized Cube. i hope anyone find it usefull. only problem i cant solve is the texturemapping so you have to solve it by your own :/ ' ---------------------------------------------------------------------------- ' Creates a spherized Cube ' ----------------------------...

Go to advanced search