playn.flash
Class FlashSurface

java.lang.Object
  extended by playn.flash.FlashSurface
All Implemented Interfaces:
Surface

public class FlashSurface
extends Object
implements Surface


Method Summary
 Surface clear()
           
 Surface drawImage(Image img, float x, float y)
           
 Surface drawImage(Image img, float x, float y, float w, float h)
           
 Surface drawImage(Image img, float dx, float dy, float dw, float dh, float sx, float sy, float sw, float sh)
           
 Surface drawImageCentered(Image img, float x, float y)
           
 Surface drawLine(float x0, float y0, float x1, float y1, float width)
           
 Surface fillRect(float x, float y, float w, float h)
           
 Surface fillTriangles(float[] xys, float[] sxys, int[] indices)
           
 Surface fillTriangles(float[] xys, int[] indices)
           
 float height()
           
 Surface restore()
           
 Surface rotate(float radians)
           
 Surface save()
           
 Surface scale(float x, float y)
           
 Surface setAlpha(float alpha)
           
 Surface setFillColor(int color)
           
 Surface setFillPattern(Pattern pattern)
           
 Surface setShader(GLShader shader)
           
 Surface setStrokeColor(int color)
           
 Surface setTint(int tint)
           
 Surface setTransform(float m11, float m12, float m21, float m22, float dx, float dy)
           
 Surface transform(float m11, float m12, float m21, float m22, float dx, float dy)
           
 Surface translate(float x, float y)
           
 float width()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

clear

public Surface clear()
Specified by:
clear in interface Surface

drawImage

public Surface drawImage(Image img,
                         float x,
                         float y)
Specified by:
drawImage in interface Surface

drawImage

public Surface drawImage(Image img,
                         float x,
                         float y,
                         float w,
                         float h)
Specified by:
drawImage in interface Surface

drawImage

public Surface drawImage(Image img,
                         float dx,
                         float dy,
                         float dw,
                         float dh,
                         float sx,
                         float sy,
                         float sw,
                         float sh)
Specified by:
drawImage in interface Surface

drawImageCentered

public Surface drawImageCentered(Image img,
                                 float x,
                                 float y)
Specified by:
drawImageCentered in interface Surface

fillRect

public Surface fillRect(float x,
                        float y,
                        float w,
                        float h)
Specified by:
fillRect in interface Surface

fillTriangles

public Surface fillTriangles(float[] xys,
                             int[] indices)
Specified by:
fillTriangles in interface Surface

fillTriangles

public Surface fillTriangles(float[] xys,
                             float[] sxys,
                             int[] indices)
Specified by:
fillTriangles in interface Surface

height

public final float height()
Specified by:
height in interface Surface

restore

public Surface restore()
Specified by:
restore in interface Surface

rotate

public Surface rotate(float radians)
Specified by:
rotate in interface Surface

save

public Surface save()
Specified by:
save in interface Surface

scale

public Surface scale(float x,
                     float y)
Specified by:
scale in interface Surface

setAlpha

public Surface setAlpha(float alpha)
Specified by:
setAlpha in interface Surface

setTint

public Surface setTint(int tint)
Specified by:
setTint in interface Surface

setFillColor

public Surface setFillColor(int color)
Specified by:
setFillColor in interface Surface

setStrokeColor

public Surface setStrokeColor(int color)

setFillPattern

public Surface setFillPattern(Pattern pattern)
Specified by:
setFillPattern in interface Surface

setShader

public Surface setShader(GLShader shader)
Specified by:
setShader in interface Surface

setTransform

public Surface setTransform(float m11,
                            float m12,
                            float m21,
                            float m22,
                            float dx,
                            float dy)
Specified by:
setTransform in interface Surface

transform

public Surface transform(float m11,
                         float m12,
                         float m21,
                         float m22,
                         float dx,
                         float dy)
Specified by:
transform in interface Surface

translate

public Surface translate(float x,
                         float y)
Specified by:
translate in interface Surface

width

public final float width()
Specified by:
width in interface Surface

drawLine

public Surface drawLine(float x0,
                        float y0,
                        float x1,
                        float y1,
                        float width)
Specified by:
drawLine in interface Surface


Copyright © 2013. All Rights Reserved.