Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
Constructor and Description |
---|
BaseStage(Context context) |
BaseStage(Context context,
AttributeSet attributes) |
Modifier and Type | Method and Description |
---|---|
AssetManager |
getAssets() |
PointF |
getFixedScale() |
Point |
getFixedSize() |
Rect |
getRect() |
Scene |
getScene() |
void |
onPause() |
void |
onResume() |
void |
setFixedSize(int width,
int height)
Use this to take advantage of the Hardware Scaler for scaling up scene in conjunction with Camera's zoom, without any additional cost.
|
void |
setScene(Scene scene) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHandler, getResources, queueEvent
public BaseStage(Context context)
public BaseStage(Context context, AttributeSet attributes)
public void setScene(Scene scene)
public Scene getScene()
public void setFixedSize(int width, int height)
setFixedSize
in interface Stage
width
- The surface's width. This can be < the resolution widthheight
- The surface's height. This can be < the resolution heightSurfaceHolder#setFixedSize(int, int)
,
http://android-developers.blogspot.com/2013/09/using-hardware-scaler-for-performance.html
public Point getFixedSize()
getFixedSize
in interface Stage
public PointF getFixedScale()
getFixedScale
in interface Stage
public void onPause()
public void onResume()