Comments (7)
Should be possible, at least with some hacks. Raylib currently uses emscripten for web apps iirc. I'll check on this when I get back from vacation later this week.
from raylib-zig.
Currently not possible, since raylib's build.zig
only offers support for Windows, Linux, macOS and *BSD. I have created an issue on its repository: raysan5/raylib#2884
from raylib-zig.
I'd also like to know. I would like to try Zig in a gamejam but I think WASM is essential for that.
Any news on this front?
from raylib-zig.
raylib now has support for building for emscripten since raysan5/raylib#2901 was merged, but Zig can't generate the required extra files that create the required JS functions (for OpenGL etc.) so at least the link step for the final "executable" has to be done with emscripten.
On the Zig side ziglang/zig#10836 tracks this issue.
from raylib-zig.
I was able to get it to work: https://github.com/bluesillybeard/ZigAndRaylibSetup
It's a hassle to set up and it's also pretty janky, but it does work.
Edit: Forgot to mention, I didn't use this wrapper, but instead used Raylib by itself
from raylib-zig.
If you can neatly integrate it into the current build script, don't hesitate to open a PR
from raylib-zig.
Fixed in #52
from raylib-zig.
Related Issues (20)
- Technical Restrictions link on the README leads nowhere
- SetConfigFlags doesn't accept enum HOT 4
- `DrawTextEx` odd text size behaviour HOT 2
- Expose access to Raylibs compile-time config flags HOT 1
- Doesnt compile HOT 1
- Offer to help: raygui support HOT 7
- Support for Zig 0.11.x HOT 1
- No Autocomplete For Zig LSP HOT 3
- flags incorrectly converted in the python generator HOT 1
- Error in build.zig HOT 1
- loadFontFromMemory fontChars missing support for NULL
- Apps crash when functions that return arrays, return null pointers HOT 1
- Functions accepting slices sometimes redundantly also take their length
- Implement system-raylib flag HOT 2
- Tips on using with zigmod? HOT 1
- No implementation for adding Vectors ?? HOT 2
- Use OS specific path separators in `build.zig`, and remove comptime parameters in `getModule`. HOT 2
- Color pink is defined wrong
- how do I include other libs (web build) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raylib-zig.