carpy-breakout/pkg/config/opengl.go

14 lines
233 B
Go

package config
import (
gl "github.com/go-gl/gl/v3.1/gles2"
)
func GlSettings() {
// Global options after setup is all done
gl.ClearColor(0.0, 0.0, 0.0, 1.0)
gl.Enable(gl.DEPTH_TEST)
gl.DepthFunc(gl.LESS)
gl.LineWidth(2.0)
}