Preparing search index...
The search index is not available
mini-gl - v2.0.1
mini-gl
Texture
Class Texture
Index
Constructors
constructor
Properties
canvas
ctx
miniGL
premultiply
Alpha
webgl
Texture
Methods
create
lg2
update
Constructors
constructor
new
Texture
(
miniGL
)
:
Texture
Parameters
miniGL
:
MiniGL
Returns
Texture
Properties
canvas
canvas
:
HTMLCanvasElement
ctx
ctx
:
CanvasRenderingContext2D
miniGL
miniGL
:
MiniGL
premultiply
Alpha
premultiply
Alpha
:
boolean
= true
Param: 是否支持预乘,默认为true,会提前乘好rgb*a,不需要再次乘alpha
webgl
Texture
webgl
Texture
:
WebGLTexture
Methods
create
create
(
__namedParameters
)
:
WebGLTexture
Parameters
__namedParameters
:
{
image
:
HTMLCanvasElement
;
name
:
string
;
rect
:
any
;
reverseY
:
boolean
;
}
image
:
HTMLCanvasElement
name
:
string
rect
:
any
reverseY
:
boolean
Returns
WebGLTexture
lg2
lg2
(
n
)
:
number
Parameters
n
:
any
Returns
number
update
update
(
texture
,
image
)
:
void
更新材质数据
Parameters
texture
:
WebGLTexture
image
:
HTMLImageElement
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
canvas
ctx
miniGL
premultiply
Alpha
webgl
Texture
create
lg2
update
mini-gl - v2.0.1
Shape
Utils
glMatrix
Canvas
DragonBones
Group
MiniGL
Texture
Viewport
Generated using
TypeDoc
Param: 是否支持预乘,默认为true,会提前乘好rgb*a,不需要再次乘alpha