Exemple #1
0
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()
}
Exemple #2
0
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()
}