Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 1.92 KB

README.md

File metadata and controls

51 lines (31 loc) · 1.92 KB

sfml

go.dev reference

The sfml project implements window creation, event handling and image drawing using SFML version 2.5.

Examples

tiny

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

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

Screenshot - tiny

fonts

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

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

Screenshot - fonts

many

The many command demonstrates how to create and handle more than one window at once.

go install -v github.com/mewspring/sfml/examples/many@master

off-screen

The off-screen command demonstrates how to perform hardware accelerated off-screen rendering.

go install -v github.com/mewspring/sfml/examples/off-screen@master

soft

The soft command demonstrates how to combine software and hardware rendering.

go install -v github.com/mewspring/sfml/examples/soft@master