DxMaterial
Category: Renderer
Base class: _BlipValue
Properties
blendMode0 : int
blendMode1 : int
colour : Colour
texture0 : DxTexture
texture1 : DxTexture
zWriteEnable : bool
Variables
add : Final[int] = 2
addMtl : DxMaterial
alpha : Final[int] = 1
alphaMtl : DxMaterial
anisotropic : Final[int] = 128
lineStrip : Final[int] = 32
linearSample : Final[int] = 0
mipmap : Final[int] = 64
multMtl : DxMaterial
multiply : Final[int] = 3
multiplyAlpha : Final[int] = 5
over : Final[int] = 0
overMtl : DxMaterial
pointSample : Final[int] = 16
textureBorder : Final[int] = 768
textureBorderU : Final[int] = 256
textureBorderV : Final[int] = 512
textureClamp : Final[int] = 1024
textureWrap : Final[int] = 0
zCmpAlways : Final[int] = 2048
zCmpLessEqual : Final[int] = 0
Constructors
__init__(self)
__init__(self, tex0: DxTexture, blendMode0: int)
__init__(self, tex0: DxTexture, blendMode0: int, tex1: DxTexture, blendMode1: int)
Methods
blendMode(self, mode: int, i: int)
getTexAddressModeU(self, iStage: int) -> int
getTexAddressModeV(self, iStage: int) -> int
getZCmpMode(self, zMode: int) -> int
set(self, tex0 = None, bm0 = 0, tex1 = None, bm1 = 0) -> Any
Set the material with up to two textures
Parameters:
- tex0: The first texture
- bm0: The blend mode for the first texture
- tex1: The second texture
- bm1: The blend mode for the second texture
setBlendState(self, name: int, blendMode: int, iBlendTargetMask: int)
setMacro(self, name: int, iValue: int)
setWorldMatrix(self, mat: Mat)
Static Methods
make(tex0, blendMode0, tex1 = None, blendMode1 = 0) -> Any
Special Methods
__new__(cls, args, args, *args) -> Any
Create a new DxMaterial