mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 13:28:20 +00:00
Day8: Assimp+Basic Lights+Asserts+vert normals&colors
This commit is contained in:
18
asserts/asserts.go
Executable file
18
asserts/asserts.go
Executable file
@ -0,0 +1,18 @@
|
||||
package asserts
|
||||
|
||||
import (
|
||||
"github.com/bloeys/go-sdl-engine/consts"
|
||||
"github.com/bloeys/go-sdl-engine/logging"
|
||||
)
|
||||
|
||||
func True(check bool, msg string) {
|
||||
if consts.Debug && !check {
|
||||
logging.ErrLog.Panicln(msg)
|
||||
}
|
||||
}
|
||||
|
||||
func False(check bool, msg string) {
|
||||
if consts.Debug && check {
|
||||
logging.ErrLog.Panicln(msg)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user