Initial commit
This commit is contained in:
commit
d7ff68b487
196 changed files with 286314 additions and 0 deletions
48
README.md
Normal file
48
README.md
Normal file
|
@ -0,0 +1,48 @@
|
|||
## raylib-go [](https://godoc.org/github.com/gen2brain/raylib-go/raylib)
|
||||
|
||||
Golang bindings for [raylib](http://www.raylib.com/), a simple and easy-to-use library to learn videogames programming.
|
||||
|
||||

|
||||
|
||||
### Requirements
|
||||
|
||||
* [raylib](http://www.raylib.com/)
|
||||
* [GLFW3](http://www.glfw.org/)
|
||||
* [OpenAL Soft](http://kcat.strangesoft.net/openal.html)
|
||||
|
||||
### Installation
|
||||
|
||||
go get -v github.com/gen2brain/raylib-go
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import "github.com/gen2brain/raylib-go/raylib"
|
||||
|
||||
func main() {
|
||||
raylib.InitWindow(800, 450, "raylib [core] example - basic window")
|
||||
|
||||
raylib.SetTargetFPS(60)
|
||||
|
||||
for !raylib.WindowShouldClose() {
|
||||
raylib.BeginDrawing()
|
||||
|
||||
raylib.ClearBackground(raylib.RayWhite)
|
||||
|
||||
raylib.DrawText("Congrats! You created your first window!", 190, 200, 20, raylib.LightGray)
|
||||
|
||||
raylib.EndDrawing()
|
||||
}
|
||||
|
||||
raylib.CloseWindow()
|
||||
}
|
||||
```
|
||||
|
||||
Check more [examples](https://github.com/gen2brain/raylib-go/examples) organized by raylib modules.
|
||||
|
||||
|
||||
### License
|
||||
|
||||
raylib-go is licensed under an unmodified zlib/libpng license. View [LICENSE](https://github.com/gen2brain/raylib-go/blob/master/LICENSE).
|
Loading…
Add table
Add a link
Reference in a new issue