Documentation
Preparing search index...
Copy @link
@lopoly/engine
textures/Texture
Texture
Class Texture
No description provided.
Index
Properties
gl
Texture
Methods
get
Raw
Bytes
decode
Buffer
load
load
From
Buffer
Properties
Readonly
gl
Texture
glTexture
:
WebGLTexture
No description provided.
Methods
get
Raw
Bytes
getRawBytes
()
:
ImageData
No description provided.
Returns
ImageData
Static
decode
Buffer
decodeBuffer
(
buffer
:
Uint8Array
<
ArrayBuffer
>
)
:
Promise
<
ImageData
>
No description provided.
Parameters
buffer
:
Uint8Array
<
ArrayBuffer
>
Returns
Promise
<
ImageData
>
Static
load
load
(
engine
:
IEngine
,
path
:
string
)
:
Promise
<
Texture
>
No description provided.
Parameters
engine
:
IEngine
path
:
string
Returns
Promise
<
Texture
>
Static
load
From
Buffer
loadFromBuffer
(
engine
:
IEngine
,
buffer
:
Uint8Array
<
ArrayBuffer
>
,
)
:
Promise
<
Texture
>
No description provided.
Parameters
engine
:
IEngine
buffer
:
Uint8Array
<
ArrayBuffer
>
Returns
Promise
<
Texture
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
gl
Texture
Methods
get
Raw
Bytes
decode
Buffer
load
load
From
Buffer
Collapse all
Documentation
Loading...
No description provided.