Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.8 KB

README.md

File metadata and controls

43 lines (26 loc) · 1.8 KB

raylib

go.dev reference

The raylib project implements window creation, event handling and image drawing using raylib version 4.5.

Dependencies

pacman -Sy raylib

Examples

input_events

The input_events command demonstrates how to create a window and handle input events using window.Open and Window.PollEvent.

go install -v github.com/mewspring/raylib/examples/input_events@master

Screenshot - input_events

tiny

The tiny command demonstrates how to render images onto the window using Window.Draw and Window.DrawRect. It also gives an example of a basic event loop.

go install -v github.com/mewspring/raylib/examples/tiny@master

Screenshot - tiny

fonts

The fonts command demonstrates how to render text using TTF fonts.

go install -v github.com/mewspring/raylib/examples/fonts@master

Screenshot - fonts