rotating_quad

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2016 License: MIT Imports: 4 Imported by: 0

README

This sample displays a rotating rectangle. It shows you how to use vertex buffers and shaders with a transformation matrix. The shaders were compiled with FXC.exe, the DirectX effects compiler, which is included in the DirectX SDK and the Windows Platform SDK. The compiled shader object code was then converted to a Go byte array to be used directly in the code.

For window creation this sample uses SDL2. 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 Allen Dang's w32 library 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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL