avm2: Implement GraphicsBitmapFill
This commit is contained in:
parent
47f594d108
commit
3e84da036f
|
@ -70,6 +70,7 @@ pub struct SystemClasses<'gc> {
|
|||
pub textformat: ClassObject<'gc>,
|
||||
pub graphics: ClassObject<'gc>,
|
||||
pub igraphicsdata: ClassObject<'gc>,
|
||||
pub graphicsbitmapfill: ClassObject<'gc>,
|
||||
pub loaderinfo: ClassObject<'gc>,
|
||||
pub bytearray: ClassObject<'gc>,
|
||||
pub stage: ClassObject<'gc>,
|
||||
|
@ -170,6 +171,7 @@ impl<'gc> SystemClasses<'gc> {
|
|||
textformat: object,
|
||||
graphics: object,
|
||||
igraphicsdata: object,
|
||||
graphicsbitmapfill: object,
|
||||
loaderinfo: object,
|
||||
bytearray: object,
|
||||
stage: object,
|
||||
|
@ -628,6 +630,7 @@ fn load_playerglobal<'gc>(
|
|||
("flash.display", "Scene", scene),
|
||||
("flash.display", "FrameLabel", framelabel),
|
||||
("flash.display", "IGraphicsData", igraphicsdata),
|
||||
("flash.display", "GraphicsBitmapFill", graphicsbitmapfill),
|
||||
("flash.display", "Graphics", graphics),
|
||||
("flash.display", "LoaderInfo", loaderinfo),
|
||||
("flash.display", "MovieClip", movieclip),
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
package flash.display {
|
||||
|
||||
import flash.geom.Matrix;
|
||||
|
||||
public final class GraphicsBitmapFill implements IGraphicsFill, IGraphicsData {
|
||||
public var bitmapData : BitmapData;
|
||||
public var matrix : Matrix;
|
||||
public var repeat : Boolean;
|
||||
public var smooth : Boolean;
|
||||
|
||||
public function GraphicsBitmapFill(bitmapData:BitmapData = null, matrix:Matrix = null, repeat:Boolean = true, smooth:Boolean = false) {
|
||||
this.bitmapData = bitmapData;
|
||||
this.matrix = matrix;
|
||||
this.repeat = repeat;
|
||||
this.smooth = smooth;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -58,6 +58,7 @@ include "flash/display/IGraphicsStroke.as"
|
|||
include "flash/display/IGraphicsFill.as"
|
||||
include "flash/display/IGraphicsPath.as"
|
||||
include "flash/display/IGraphicsData.as"
|
||||
include "flash/display/GraphicsBitmapFill.as"
|
||||
include "flash/display/GraphicsPathCommand.as"
|
||||
include "flash/display/GraphicsPathWinding.as"
|
||||
include "flash/display/InterpolationMethod.as"
|
||||
|
|
Loading…
Reference in New Issue