Documentation ¶
Index ¶
- Variables
- func CompileShader(s string, t uint32) (uint32, error)
- func DrawText(size int, rv *RenderVars, window *glfw.Window, monstersRemaining int)
- func FinishRender(window *glfw.Window)
- func GlRenderer(size int, rv *RenderVars, window *glfw.Window)
- func MakeBlocks(size int) [][][]Block
- func MakeRandomBlocks(size int) [][][]Block
- func NewProgram(vSource, fSource string) (uint32, error)
- func RenderBlocks(rv *RenderVars, blocks [][][]Block, rotx, roty float32, size int, wait bool)
- func RenderPrepWorker(size int, cycleCh, readyCh chan *RenderData)
- func RunGL(f func())
- func Screenshot(filename string, width, height int)
- func ScreenshotBuff(width, height int) []byte
- func SetCam(size int, p uint32)
- func ShutdownGraphics()
- func StartRender()
- type Block
- type RenderData
- type RenderVars
Constants ¶
This section is empty.
Variables ¶
View Source
var BlocksBuffer [][][]Block
View Source
var ShowTimings = false
Functions ¶
func FinishRender ¶
func GlRenderer ¶
func GlRenderer(size int, rv *RenderVars, window *glfw.Window)
func MakeBlocks ¶
func MakeRandomBlocks ¶
func NewProgram ¶
func RenderBlocks ¶
func RenderBlocks(rv *RenderVars, blocks [][][]Block, rotx, roty float32, size int, wait bool)
func RenderPrepWorker ¶
func RenderPrepWorker(size int, cycleCh, readyCh chan *RenderData)
func Screenshot ¶
func ScreenshotBuff ¶
func ShutdownGraphics ¶
func ShutdownGraphics()
func StartRender ¶
func StartRender()
Types ¶
type RenderData ¶
Click to show internal directories.
Click to hide internal directories.