This simple example initializes Direct3D9 and changes the background color in an endless loop. It shows the basic setup and teardown of the library.
For window creation this sample uses Allen Dang's w32 library. Direct3D needs a handle to the window it runs in so you need a method for setting this up. Other libraries that you can use include SDL2 and the walk library.
If you simply build this sample with
go build the resulting program will keep a console window open while running. Use the
build.bat to build instead, it passes the flag
-H=windowsgui to the linker which gets rid of the console window.
There is no documentation for this package.