Class GDXModel
java.lang.Object
nl.colorize.multimedialib.renderer.libgdx.GDXModel
- All Implemented Interfaces:
Mesh,StageNode3D
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled by the renderer at the end of frame updates, while rendering the stage.voidapplyColor(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.Returns this node's global transform, which is interpreted relative to the stage.protected com.badlogic.gdx.graphics.g3d.ModelInstanceReturns this node's local transform, which is interpreted relative to its parent node.
-
Constructor Details
-
GDXModel
protected GDXModel(com.badlogic.gdx.graphics.g3d.ModelInstance modelInstance) -
GDXModel
protected GDXModel(com.badlogic.gdx.graphics.g3d.Model model)
-
-
Method Details
-
animate
Description copied from interface:StageNode3DCalled by the renderer at the end of frame updates, while rendering the stage.animationTimercontains the elapsed time since the currently active scene was started. This allows animations to display correctly, without the need to update every single node during each frame update.- Specified by:
animatein interfaceStageNode3D
-
applyColor
- Specified by:
applyColorin interfaceMesh
-
applyTexture
- Specified by:
applyTexturein interfaceMesh
-
applyDynamicTexture
- Specified by:
applyDynamicTexturein interfaceMesh
-
copy
Description copied from interface:MeshCreates 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. -
getModelInstance
protected com.badlogic.gdx.graphics.g3d.ModelInstance getModelInstance() -
getTransform
Description copied from interface:StageNode3DReturns this node's local transform, which is interpreted relative to its parent node. The local transform can be modified by application code to modify how and where the node is displayed.- Specified by:
getTransformin interfaceStageNode3D
-
getGlobalTransform
Description copied from interface:StageNode3DReturns this node's global transform, which is interpreted relative to the stage. The global transform is updated by the renderer when drawing the stage at the end of frame updates. Recalculating the global transform is relatively expensive, and is therefore only done once per frame. This means that any changes made to a node's local transform since the last frame update may not yet been reflected in the current state of its global transform.- Specified by:
getGlobalTransformin interfaceStageNode3D
-
getDynamicTexture
Description copied from interface:MeshIf 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.- Specified by:
getDynamicTexturein interfaceMesh
-