mirror of
https://github.com/Kugelschieber/go-game.git
synced 2026-01-18 06:40:28 +00:00
Added GL initializsation, added clear buffer and clear color options.
This commit is contained in:
15
gl_util.go
Normal file
15
gl_util.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package goga
|
||||
|
||||
import (
|
||||
"github.com/go-gl/gl/v4.5-core/gl"
|
||||
"log"
|
||||
)
|
||||
|
||||
// Checks for GL errors and prints to log if one occured.
|
||||
func CheckGLError() {
|
||||
error := gl.GetError()
|
||||
|
||||
if error != 0 {
|
||||
log.Print(error)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user