Package | laya.webgl.shader.d2 |
Class | public class ShaderDefines2D |
Inheritance | ShaderDefines2D ShaderDefines Object |
Method | Defined By | ||
---|---|---|---|
ShaderDefines2D | |||
__init__():void [static] | ShaderDefines2D | ||
_reg(name:String, value:int, _name2int:Object, _int2name:Array):void [static] | ShaderDefines | ||
_toInt(names:String, _name2int:Object):int [static] | ShaderDefines | ||
_toText(value:int, _int2name:Array, _int2nameMap:Object):Object [static] | ShaderDefines | ||
add(value:*):int | ShaderDefines | ||
addInt(value:int):int | ShaderDefines | ||
getValue():int | ShaderDefines | ||
isDefine(def:int):Boolean | ShaderDefines | ||
reg(name:String, value:int):void [static] | ShaderDefines2D | ||
remove(value:*):int | ShaderDefines | ||
setValue(value:int):void | ShaderDefines | ||
toInt(names:String):int [static] | ShaderDefines2D | ||
toNameDic():Object | ShaderDefines | ||
toText(value:int, int2name:Array, int2nameMap:Object):* [static] | ShaderDefines2D |
Constant | Defined By | ||
---|---|---|---|
COLOR2D : int = 0x02 [static] | ShaderDefines2D | ||
COLORADD : int = 0x40 [static] | ShaderDefines2D | ||
FILLTEXTURE : int = 0x100 [static] | ShaderDefines2D | ||
FILTERBLUR : int = 0x10 [static] | ShaderDefines2D | ||
FILTERCOLOR : int = 0x20 [static] | ShaderDefines2D | ||
FILTERGLOW : int = 0x08 [static] | ShaderDefines2D | ||
PRIMITIVE : int = 0x04 [static] | ShaderDefines2D | ||
SHADERDEFINE_FSHIGHPRECISION : int = 0x400 [static] | ShaderDefines2D | ||
SKINMESH : int = 0x200 [static] | ShaderDefines2D | ||
TEXTURE2D : int = 0x01 [static] | ShaderDefines2D | ||
WORLDMAT : int = 0x80 [static] | ShaderDefines2D |
ShaderDefines2D | () | Constructor |
public function ShaderDefines2D()
__init__ | () | method |
public static function __init__():void
reg | () | method |
public static function reg(name:String, value:int):void
Parameters
name:String | |
value:int |
toInt | () | method |
public static function toInt(names:String):int
Parameters
names:String |
int |
toText | () | method |
public static function toText(value:int, int2name:Array, int2nameMap:Object):*
Parameters
value:int | |
int2name:Array | |
int2nameMap:Object |
* |
COLOR2D | Constant |
public static const COLOR2D:int = 0x02
COLORADD | Constant |
public static const COLORADD:int = 0x40
FILLTEXTURE | Constant |
public static const FILLTEXTURE:int = 0x100
FILTERBLUR | Constant |
public static const FILTERBLUR:int = 0x10
FILTERCOLOR | Constant |
public static const FILTERCOLOR:int = 0x20
FILTERGLOW | Constant |
public static const FILTERGLOW:int = 0x08
PRIMITIVE | Constant |
public static const PRIMITIVE:int = 0x04
SHADERDEFINE_FSHIGHPRECISION | Constant |
public static const SHADERDEFINE_FSHIGHPRECISION:int = 0x400
SKINMESH | Constant |
public static const SKINMESH:int = 0x200
TEXTURE2D | Constant |
public static const TEXTURE2D:int = 0x01
WORLDMAT | Constant |
public static const WORLDMAT:int = 0x80