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