Day8: Assimp+Basic Lights+Asserts+vert normals&colors

This commit is contained in:
bloeys
2021-11-27 22:18:51 +04:00
parent 616daaf97d
commit 0e2e9007b6
12 changed files with 146 additions and 113 deletions

18
asserts/asserts.go Executable file
View 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)
}
}