Old hobby attempt at a 3D voxel engine in Go/OpenGL.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

types.go 196B

1234567891011121314151617181920212223
  1. package main
  2. type Direction int
  3. const (
  4. DOWN Direction = iota
  5. UP
  6. LEFT
  7. RIGHT
  8. BACK
  9. FORWARD
  10. UNKNOWN
  11. )
  12. type Named interface {
  13. Name() string
  14. }
  15. type Position struct {
  16. x int
  17. y int
  18. z int
  19. }