mirror of
https://github.com/Kugelschieber/go-game.git
synced 2026-01-17 22:30:28 +00:00
16 lines
322 B
Go
16 lines
322 B
Go
package goga
|
|
|
|
// The dropable interface is used to clean up GL objects.
|
|
// Use the Drop() function to drop a range of objects.
|
|
type Dropable interface {
|
|
Drop()
|
|
}
|
|
|
|
// Drops given GL objects.
|
|
// Objects must implement the Dropable interface.
|
|
func Drop(objects []Dropable) {
|
|
for _, obj := range objects {
|
|
obj.Drop()
|
|
}
|
|
}
|