Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
388 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package flash.filters; #if flash | ||
|
||
|
||
import openfl.display.BitmapData; | ||
import openfl.geom.Point; | ||
|
||
|
||
@:final extern class DisplacementMapFilter extends BitmapFilter { | ||
|
||
public var alpha:Float; | ||
public var color:Int; | ||
public var componentX:Int; | ||
public var componentY:Int; | ||
public var mapBitmap:BitmapData; | ||
public var mapPoint:Point; | ||
public var mode:DisplacementMapFilterMode; | ||
public var scaleX:Float; | ||
public var scaleY:Float; | ||
|
||
public function new (mapBitmap:BitmapData = null, mapPoint:Point = null, componentX:Int = 0, componentY:Int = 0, scaleX:Float = 0.0, scaleY:Float = 0.0, mode:DisplacementMapFilterMode = WRAP, color:Int = 0, alpha:Float = 0.0); | ||
|
||
} | ||
|
||
|
||
#else | ||
typedef DisplacementMapFilter = openfl.filters.DisplacementMapFilter; | ||
#end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package flash.filters; #if flash | ||
|
||
|
||
@:enum abstract DisplacementMapFilterMode(String) from String to String { | ||
|
||
public var CLAMP = "clamp"; | ||
public var COLOR = "color"; | ||
public var IGNORE = "ignore"; | ||
public var WRAP = "wrap"; | ||
|
||
} | ||
|
||
|
||
#else | ||
typedef DisplacementMapFilterMode = openfl.filters.DisplacementMapFilterMode; | ||
#end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.