mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
7bc0603d7e
Now that the OpenGL driver package is named "opengl", we can finally get rid of the ugly "glimpl" name. Signed-off-by: Elias Naur <mail@eliasnaur.com>
28 lines
470 B
Go
28 lines
470 B
Go
// +build !js
|
|
|
|
package gl
|
|
|
|
type (
|
|
Buffer struct{ V uint }
|
|
Framebuffer struct{ V uint }
|
|
Program struct{ V uint }
|
|
Renderbuffer struct{ V uint }
|
|
Shader struct{ V uint }
|
|
Texture struct{ V uint }
|
|
Query struct{ V uint }
|
|
Uniform struct{ V int }
|
|
Object struct{ V uint }
|
|
)
|
|
|
|
func (u Uniform) Valid() bool {
|
|
return u.V != -1
|
|
}
|
|
|
|
func (p Program) Valid() bool {
|
|
return p.V != 0
|
|
}
|
|
|
|
func (s Shader) Valid() bool {
|
|
return s.V != 0
|
|
}
|