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() }
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() }