ViewSizer

public interface ViewSizer
Known Indirect Subclasses

Interface for controlling the size of a ViewRenderable in the Scene. The final size that the view is displayed at will be the size from this ViewSizer scaled by the getWorldScale() of the Node that the ViewRenderable is attached to.

Public Methods

abstract Vector3
getSize(View view)
Calculates the desired size of the view in the Scene.

Public Methods

public abstract Vector3 getSize (View view)

Calculates the desired size of the view in the Scene. x represents the width, and y represents the height.

Parameters
view the view to calculate the size of
Returns
  • a new vector that represents the view's size in the Scene

Send feedback about...