Added geo and gl packages from gogeline and improved documentation.

This commit is contained in:
Marvin Blum
2016-05-03 21:23:50 +02:00
parent 05013370fd
commit 19731dc0e5
15 changed files with 1388 additions and 3 deletions

15
gl/drop.go Normal file
View File

@@ -0,0 +1,15 @@
package gl
// 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()
}
}