Exemple #1
0
func init() {
	GViewMatrix = mat4.New()
	GProjectionMatrix = mat4.New()
	GViewProjectionMatrix = mat4.New()
	GFarClipplane = 1024.0
	GCamera = nil
}
Exemple #2
0
func NewModelData(path string) *ModelData {
	md := &ModelData{path: path, vbo: nil}
	md.stdMat = mat4.New()
	md.vbo = vbo.New()
	md.LoadFile()
	return md
}
Exemple #3
0
func NewModel(md *ModelData) *Model {
	return &Model{data: md, Mat: mat4.New()}
}