D.J.Peters wrote:On windows the *.dll's wasn't linked with the "-static-libgcc" linker flag so the mingw gcc runtime library are needed also.
...
Seems not to be the case with the binary I have (both FreeBasic and C are linking against the same lib in the above examples). Will have a closer look, thanks.
D.J.Peters wrote:...
How ever I made this changes with cmake compiled raylib V3.0 (static and dynamic 32/64-bit) and created fbraylib.bi and fbraylbimath.bi (improved of course)
But looks like all changes of V2.5 to V3.0 are internal only, no new stuff for the user of the library :-(
(I can't find a kind of changelog of raylib V3.0)
...
Yeah, was looking into
raymath.bi and it could use some improvements. Where did you found the raylib 3.0 sources? I can't seem to find them (not that I looked much, anyway). The latest release in the
official repo seems to be 2.6.
D.J.Peters wrote:...
I wonder me that all structs like music, camera, vector, color ... are all pushed BYVAL on the stack (a slow copy) why not BYREF !
(on more mystery thing of this cute lib)
Joshy
Indeed, this also struck me as strange. On the other hand, none of the structures are too large so...
Coolman wrote:impressive library. it would be cool to divert it from its use and use it to create a graphical interface to programs generated by freebasic. the programs compiled with the static library are around 630 kb in size. it's perfect. I tried to test it with codeblocks but it is parameter for windows. if i have time i will fix this problem. I now only use linux.
Users of the lib already did, it's called 'raygui'. Naturally, this is also one of the uses I indend for it (but quality rendering of primitives is probably best left to ie Cairo), and the lib also implements some convenience features for in-engine tooling (drag and drop support and clipboard routines, for example).
Linking statically against it would solve most of the functionality issues of the dated FBGFX2. One thing I did notice is that the library lacks a way of exposing the OpenGL context so you can bind extensions against it (for DIY OpenGL rendering). You can of course use the FreeBasic builtins, but this isn't recommended by the Kronos Group and may have undefined results.
Modifying the lib to allow this shouldn't pose too much trouble, though, but I'll have to dig deeper into the sources and work alonside the devels (or simply ask them to include it XD)
Can
somebody please confirm that both the above examples are running as expected, so I can discard my gfx card (which is notoriously sh*tty) before embarking on a fruitless bug hunt?