m0n7y5 / raylib-beef Goto Github PK
View Code? Open in Web Editor NEWA raylib binding for Beef programming language
License: MIT License
A raylib binding for Beef programming language
License: MIT License
raylib-beef/src/Types/Color.bf
Line 52 in 0fe15bc
Beef version 0.42.4 raises error on this line: Expected '(' or '['
Downloaded and installed latest release of raylib-beef but the error persists.
Both on Windows and Linux has this is undefined using the pre-built Raylib releases:
https://github.com/raysan5/raylib/releases
If change it back to CloseWindow, it works fine.
raylib-beef/src/Raylib/Core/Windowing.bf
Line 16 in ca09fed
I think this is because you tried to compile this on your own and Raylib has issues with the Windows API when being included.
OK, so I decided to use this library with linux. But, as with many other things it didn't work right away. So, I've decided to write this as a note for others who might want to do the same.
2)Get rid of Windows dependencies in the binding
There are 4 Windows.IntBool
s in Types/PhysicsBodyData.bf. I replaced them with int32
to maintain the size of the struct, but this might have broken something in the physics system-NOT TESTED.
3)Add linker flags to the BeefProj.toml file of YOUR project - not the library.
[Configs.Debug.Linux64]
OtherLinkFlags = "$(LinkFlags) -lraylib -lglfw -lGL -lopenal -lm -pthread -ldl"
Adding this should solve any linker errors, and the project should now compile and run.
Hi. Thanks for this project. I was playing around with it a bit, and noticed that methods related to texture and image loading aren't returning proper "Image" and "Texture2D" structs. I mean the methods LoadImage, LoadTexture, LoadImageRaw etc.
Texture loading works fine when loading models with LoadModel, but when trying to load image files directly the returned structs are populated with invalid data. I have checked to see if the structs defined on Beef side match with the Raylib, and they seem fine. Parameters passed to the function looks right too. So I couldn't understand what the problem might be. I hope you might have an idea.
Here is the returned Texture2D data :
Please add a License for these bindings.
Personally I would like MIT or Zlib.
(btw. Raylib uses the Zlib-License)
I am not sure if this is an issue with this library or Beef. No matter what I do I get:
ERROR: Type could not be found (are you missing a using directive or library reference?) at line 2:14 in /home/joseph/Documents/beef-game/src/Program.bf
using static raylib_beef.Raylib;
^^^^^^^^^^^
It seems like Beef cannot parse the library correctly. Here is a zip of raylib-beef inside of the example you provided with flags on my end: https://drive.google.com/file/d/1l1yKDCufm7vB8m8zG_ykqykLvpR4Qdza/view?usp=sharing
Here is the repo:
https://github.com/joseph-montanez/beef-game
git clone --recurse-submodules https://github.com/joseph-montanez/beef-game.git
Worked out there is an error in the definition of id in the RenderTexture2D type (at least on the Windows platform)
unit id;
needs to be unit32 id;
The values of the member types are set incorrectly as it currently is.
Thank you.
There is a dublicate error regarding CloseWindow() in user32 and the fix for it does not work in the static build version of the project.
For debug there is a fix by simply specifiying x64DLL in the additional link flags instead of x64.
This does not seem to work for releasee though
Any chance to see an update to raylib version 4.5 soon?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.