Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function define_model (name,data)
- m = pi_model:new(name)
- if data.info then m:info(data.info) end
- if data.static then
- m:static(function (m,lod)
- _current_model = m
- data.static(lod)
- end)
- end
- if data.static then
- m:dynamic(function (m,lod)
- _current_model = m
- data.dynamic(lod)
- end)
- end
- pi_model:add(m)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement