Example #1
0
File: triangle.go Project: dmac/gg
func (s *Scene) Draw() {
	gg.ClearColor(0.5, 0.5, 0.5, 1.0)
	gg.Clear(gg.COLOR_BUFFER_BIT | gg.DEPTH_BUFFER_BIT)
	s.triangle.Draw()
}
Example #2
0
File: tetris.go Project: dmac/gg
func (t *Tetris) Draw() {
	gg.ClearColor(0.5, 0.5, 0.5, 1.0)
	gg.Clear(gg.COLOR_BUFFER_BIT | gg.DEPTH_BUFFER_BIT)
	t.bg.Draw()
	t.board.Draw()
}