Interface Mesh
- All Superinterfaces:
StageNode, StageNode3D
Polygon mesh that can be used to render 3D graphics. Simple geometry can
be created programmatically, more advanced meshes can be loaded from 3D
model files.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyColor(ColorRGB color) voidapplyDynamicTexture(Sprite sprite) voidapplyTexture(Image texture) copy()Creates a copy of this mesh, which will use the same geometry, materials, textures, and animations as this mesh.If this mesh is currently using a dynamic texture, returns the sprite that is used as its source.voidDeprecated.Methods inherited from interface StageNode3D
detach, getGlobalTransform, getParent, getTransform
-
Method Details
-
setParent
Deprecated. -
applyColor
-
applyTexture
-
applyDynamicTexture
-
getDynamicTexture
Sprite getDynamicTexture()If this mesh is currently using a dynamic texture, returns the sprite that is used as its source. Returnsnullif this mesh is not using a dynamic texture. -
copy
Mesh copy()Creates a copy of this mesh, which will use the same geometry, materials, textures, and animations as this mesh. The copy is not yet added to the stage.
-