GithubHelp home page GithubHelp logo

sarvex / mach Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hexops/mach

0.0 1.0 0.0 7.22 MB

Mach is a game engine & graphics toolkit for the future.

Home Page: https://machengine.org

License: Other

Shell 0.31% JavaScript 1.42% C++ 0.87% Python 0.02% C 0.31% Objective-C 0.01% Common Lisp 0.11% Makefile 0.02% HTML 0.11% Zig 96.82%

mach's Introduction

Mach is still early stages - see what we have today and stay tuned

Mach: game engine & graphics toolkit for the future

Written in Zig, Mach is for creating games, graphical applications, and desktop/mobile apps:

  • Data-driven, tooling oriented
  • Composable
  • Competitive with Unity and Unreal in spirit (a fully fledged editor in the future, etc.)

example-advanced-gen-texture-light example-boids example-textured-cube

Example showcase

Cross-platform graphics in ~60 seconds

git clone --recursive https://github.com/hexops/mach-examples
cd mach-examples/
zig build run-boids

Cross-platform graphics, a unified shader language & compute shaders.

(Requires zig 0.11.x | known issues)

Get started with 15+ examples

Libraries

Mach has many libraries you can use for game development in Zig - you don't have to use the entire engine. All our libraries aim to have the same zero-fuss installation, cross compilation, and platform support:

  • mach-glfw: Ziggified GLFW bindings with 100% API coverage
  • mach-freetype: Ziggified Freetype 2 & HarfBuzz bindings
  • mach-gpu-dawn: Google's Dawn WebGPU implementation, cross-compiled with Zig into a single static library
  • mach-system-sdk: More libraries for cross-compilation with Zig

Join the community

Contributors are very welcome! There are lots of places you can help out with little knowledge, so feel free to join the Matrix chat and say hi!

Sponsor development

No, it’s not Tom from myspace - it’s me, @slimsag! It’s taken almost a year to get here - staring at broken CI pipelines, C++ compiler errors, buying hardware to test every OS+arch possible, and more.

There are few things in life that I am more serious about than this work. I dedicate ~48 hours/week to my dayjob, and ~50h/week to Zig building Mach and running zigmonthly.org. After three years of aggressively pushing for progress in this exact way, I have no plans to slow down anytime soon.

Supported platforms

Mach is still early stages, so far we have support for building from the following OS to the following targets:

Building for From macOS x86_64 From macOS M1/aarch64 From Linux x86_64 From Windows x86_64
macOS x86_64
macOS M1/aarch64
Linux x86_64
Windows x86_64
iOS 🏃 🏃 🏃 🏃
Android 🏃 🏃 🏃 🏃
Web (Wasm) 🏃 🏃 🏃 🏃
  • ✅ Tested and verified via CI.
  • ✔️ Should work, not tested via CI yet.
  • 🏃 Planned or in progress.
  • ⚠️ Implemented, but has known issues (e.g. bugs in Zig.)

Supported Zig version

Mach works with the new self-hosted Zig compiler only. This means you'll need to use the latest Zig nightly version.

Currently we test using 0.11.0-dev.2868+1a455b2dd. Newer is generally better, but you can download this version here:

Contributing

Mach is maintained as a monorepo. When changes are merged to this repository, we use some git-fu to pick out the commits to subdirectories and push them to sub-repositories automagically. Changes to the libs/glfw/ directory in this repository get pushed to the separate mach-glfw repository after being merged here, for example.

Please prefix commits / pull requests with the project name (glfw: fix an issue, gpu: fix an issue, etc.) and if possible only one project per commit. If you don't know how to do this, no worries, we can help - just send your PR anyway!

mach's People

Contributors

alichraghi avatar andoryuuta avatar avokadoen avatar bratishkaerik avatar byteron avatar c-bj avatar d3m1gd avatar david-vanderson avatar desttinghim avatar erikarvstedt avatar iddev5 avatar inkryption avatar kdchambers avatar leecannon avatar leroycep avatar lordmzte avatar lucasromanosantos avatar luexa avatar michal-z avatar mitchellh avatar mlugg avatar newbluck avatar piergiorgiozagaria avatar praschke avatar rudedogg avatar slimsag avatar tato avatar vulfox avatar wrench-bot avatar zack466 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.