-
Notifications
You must be signed in to change notification settings - Fork 6
ModelData
tjakka5 edited this page Dec 6, 2016
·
13 revisions
A Model needs ModelData to be able to render anything. Here's how you load or create your ModelData.
Creates and returns new ModelData from the path specified.
ModelData.newFromPath(path)
Creates and returns new (2d) ModelData from the ImageData provided.
ModelData.newFromImage(ImageData)
Creates and returns new (2d) ModelData from the graphical functions in the function.
ModelData.newFromFunc(func, width, height)
Creates and returns new ModelData. Automatically detects if source is a path, ImageData, etc.
ModelData.new(source)
Shortcut for ModelData.new().
ModelData(source)
Creates and returns new ModelData from a .vox. This function is very slow. Only use it for quick testing.
ModelData.newFromVox(path)