Class MeshObject

    • Field Detail

      • transformations

        public ITransform[] transformations
        TRANSFORMATIONS - are applied each cycle
    • Constructor Detail

      • MeshObject

        public MeshObject()
    • Method Detail

      • doneLoading

        public void doneLoading​(com.badlogic.gdx.assets.AssetManager manager)
        Overrides:
        doneLoading in class FadeNode
      • updateLocalTransform

        protected void updateLocalTransform()
        Update the local transform with the transform and the rotations/scales necessary. Override if your model contains more than just the position and size.
      • setToLocalTransform

        public void setToLocalTransform​(com.badlogic.gdx.math.Matrix4 localTransform,
                                        boolean forceUpdate)
      • addToRenderLists

        protected void addToRenderLists​(ICamera camera)
        Description copied from class: AbstractPositionEntity
        Adds this entity to the necessary render lists after the distance to the camera and the view angle have been determined.
        Overrides:
        addToRenderLists in class FadeNode
      • setTransformName

        public void setTransformName​(java.lang.String transformName)
      • setTranslate

        public void setTranslate​(double[] tr)
      • setRotate

        public void setRotate​(double[] rt)
      • setScale

        public void setScale​(double[] sc)
      • setAdditiveblending

        public void setAdditiveblending​(java.lang.Boolean additive)
      • renderText

        public boolean renderText()
        Description copied from interface: I3DTextRenderable
        Tells whether the text must be rendered or not for this entity
        Specified by:
        renderText in interface I3DTextRenderable
        Returns:
        True if text must be rendered
      • textColour

        public float[] textColour()
        Description copied from interface: I3DTextRenderable
        Returns an array with the text colour in the fashion [r, g, b, a]
        Specified by:
        textColour in interface I3DTextRenderable
        Returns:
        Array with the colour
      • textScale

        public float textScale()
        Description copied from interface: I3DTextRenderable
        Returns the text scale for the scale varying in the shader
        Specified by:
        textScale in interface I3DTextRenderable
        Returns:
        The scale
      • isLabel

        public boolean isLabel()
        Description copied from interface: I3DTextRenderable
        Is it a label or another kind of text?
        Specified by:
        isLabel in interface I3DTextRenderable
        Returns:
        Whether this is a label