gioui.org/ui@v0.0.0-20190926171558-ce74bc0cbaea/app/internal/gl/types.go (about) 1 // +build !js 2 3 package gl 4 5 type ( 6 Buffer struct{ V uint } 7 Framebuffer struct{ V uint } 8 Program struct{ V uint } 9 Renderbuffer struct{ V uint } 10 Shader struct{ V uint } 11 Texture struct{ V uint } 12 Query struct{ V uint } 13 Uniform struct{ V int } 14 Object struct{ V uint } 15 ) 16 17 func (u Uniform) Valid() bool { 18 return u.V != -1 19 }