Package nl.colorize.multimedialib.stage
Interface Mesh
- All Superinterfaces:
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.Methods inherited from interface nl.colorize.multimedialib.stage.StageNode3D
animate, getGlobalTransform, getTransform
-
Method Details
-
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.
-