Support apple silicon+update usage instructions

This commit is contained in:
bloeys
2022-01-22 07:48:11 +04:00
parent 3aff1db548
commit 5f24cc4fba
3 changed files with 6 additions and 3 deletions

View File

@ -4,9 +4,9 @@ nMage is a (hopefully!) high performance 3D Game Engine written in Go being deve
This project is being built with the goals being (in no particular order): This project is being built with the goals being (in no particular order):
* To build a good game engine that can be used to develop full fledged games (as opposed to just demos and proofs-of-concept)
* Sharing knowledge about less popular/less taught (e.g. compared to web dev), yet very powerful computing topics by building things and explaining as we go * Sharing knowledge about less popular/less taught (e.g. compared to web dev), yet very powerful computing topics by building things and explaining as we go
* Showing the development process of large, high performance software, including things like: learning unfamiliar topics, reading docs, fixing bugs and profiling and optimizing * Showing the development process of large, high performance software, including things like: learning unfamiliar topics, reading docs, fixing bugs and profiling and optimizing
* To build a good game engine that can actually be used to develop games
* Have fun through the entire thing! * Have fun through the entire thing!
## Running the code ## Running the code
@ -17,7 +17,8 @@ To run the project you need:
* A C/C++ compiler installed and in your path * A C/C++ compiler installed and in your path
* Windows: [MingW](https://www.mingw-w64.org/downloads/#mingw-builds) or similar * Windows: [MingW](https://www.mingw-w64.org/downloads/#mingw-builds) or similar
* Mac/Linux: Should be installed by default, but if not try [GCC](https://gcc.gnu.org/) or [Clang](https://releases.llvm.org/download.html) * Mac/Linux: Should be installed by default, but if not try [GCC](https://gcc.gnu.org/) or [Clang](https://releases.llvm.org/download.html)
* Get the required [assimp-go](https://github.com/bloeys/assimp-go) DLLs/DyLibs and place them correctly by following the `assimp-go` [README](https://github.com/bloeys/assimp-go#using-assimp-go).
Then simply clone and use `go run .` Then run nMage with `go run .`
> Note: that it might take a while to run the first time because of downloading/compiling dependencies. > Note: that it might take a while to run the first time because of downloading/compiling dependencies.

2
go.mod
View File

@ -7,7 +7,7 @@ require github.com/veandco/go-sdl2 v0.4.10
require github.com/go-gl/gl v0.0.0-20211025173605-bda47ffaa784 require github.com/go-gl/gl v0.0.0-20211025173605-bda47ffaa784
require ( require (
github.com/bloeys/assimp-go v0.3.1 github.com/bloeys/assimp-go v0.3.2
github.com/bloeys/gglm v0.3.1 github.com/bloeys/gglm v0.3.1
github.com/inkyblackness/imgui-go/v4 v4.3.0 github.com/inkyblackness/imgui-go/v4 v4.3.0
) )

2
go.sum
View File

@ -1,5 +1,7 @@
github.com/bloeys/assimp-go v0.3.1 h1:GANPXH8ER/4B/XsxZOw03GLZi2qKiWapSJ9dntrGoic= github.com/bloeys/assimp-go v0.3.1 h1:GANPXH8ER/4B/XsxZOw03GLZi2qKiWapSJ9dntrGoic=
github.com/bloeys/assimp-go v0.3.1/go.mod h1:my3yRxT7CfOztmvi+0svmwbaqw0KFrxaHxncoyaEIP0= github.com/bloeys/assimp-go v0.3.1/go.mod h1:my3yRxT7CfOztmvi+0svmwbaqw0KFrxaHxncoyaEIP0=
github.com/bloeys/assimp-go v0.3.2 h1:CsKnLloWZyn6uYNNaQE2Jq2Q+yH4d71A+CxbpU2flng=
github.com/bloeys/assimp-go v0.3.2/go.mod h1:my3yRxT7CfOztmvi+0svmwbaqw0KFrxaHxncoyaEIP0=
github.com/bloeys/gglm v0.3.1 h1:Sy9upW7SBsBfDXrSmEhid3aQ+7J7itej+upwcxOnPMQ= github.com/bloeys/gglm v0.3.1 h1:Sy9upW7SBsBfDXrSmEhid3aQ+7J7itej+upwcxOnPMQ=
github.com/bloeys/gglm v0.3.1/go.mod h1:qwJQ0WzV191wAMwlGicbfbChbKoSedMk7gFFX6GnyOk= github.com/bloeys/gglm v0.3.1/go.mod h1:qwJQ0WzV191wAMwlGicbfbChbKoSedMk7gFFX6GnyOk=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=