mirror of
https://github.com/Kugelschieber/go-game.git
synced 2026-01-18 06:40:28 +00:00
Moved all into one package, added png loader.
This commit is contained in:
15
drop.go
Normal file
15
drop.go
Normal file
@@ -0,0 +1,15 @@
|
||||
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 inteface.
|
||||
func Drop(objects []Dropable) {
|
||||
for _, obj := range objects {
|
||||
obj.Drop()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user