正在准备搜索索引...
搜索索引不可用
LayaAir3引擎API
LayaAir3引擎API
laya/RenderDriver/OpenGLESDriver/RenderDevice/GLESTextureContext
GLESTextureContext
类 GLESTextureContext
实现
ITextureContext
索引
构造函数
constructor
属性
need
Bitmap
方法
bindout
Screen
Target
bind
Render
Target
create
Render
Target
Cube
Internal
create
Render
Target
Depth
Texture
create
Render
Target
Internal
create
Render
Texture
Cube
Internal
create
Texture3DInternal
create
Texture
Internal
init
Video
Texture
Data
read
Render
Target
Pixel
Data
read
Render
Target
Pixel
Data
Async
set
CubeDDSData
set
Cube
Image
Data
set
CubeKTXData
set
Cube
Pixels
Data
set
Cube
Sub
Pixel
Data
set
Texture3DImage
Data
set
Texture3DPixels
Data
set
Texture3DSub
Pixels
Data
set
Texture
Compare
Mode
set
TextureDDSData
set
TextureHDRData
set
Texture
Image
Data
set
TextureKTXData
set
Texture
Pixels
Data
set
Texture
Sub
Image
Data
set
Texture
Sub
Pixels
Data
unbind
Render
Target
update
Video
Texture
构造函数
constructor
new
GLESTextureContext
(
native
:
any
)
:
GLESTextureContext
参数
native
:
any
返回
GLESTextureContext
属性
need
Bitmap
needBitmap
:
boolean
方法
bindout
Screen
Target
bindoutScreenTarget
()
:
void
返回
void
bind
Render
Target
bindRenderTarget
(
renderTarget
:
GLESInternalRT
,
faceIndex
?:
number
)
:
void
参数
renderTarget
:
GLESInternalRT
faceIndex
:
number
= 0
返回
void
create
Render
Target
Cube
Internal
createRenderTargetCubeInternal
(
size
:
number
,
colorFormat
:
RenderTargetFormat
,
depthStencilFormat
:
RenderTargetFormat
,
generateMipmap
:
boolean
,
sRGB
:
boolean
,
multiSamples
:
number
,
)
:
GLESInternalRT
参数
size
:
number
colorFormat
:
RenderTargetFormat
depthStencilFormat
:
RenderTargetFormat
generateMipmap
:
boolean
sRGB
:
boolean
multiSamples
:
number
返回
GLESInternalRT
create
Render
Target
Depth
Texture
createRenderTargetDepthTexture
(
renderTarget
:
GLESInternalRT
,
dimension
:
TextureDimension
,
width
:
number
,
height
:
number
,
)
:
GLESInternalTex
参数
renderTarget
:
GLESInternalRT
dimension
:
TextureDimension
width
:
number
height
:
number
返回
GLESInternalTex
create
Render
Target
Internal
createRenderTargetInternal
(
width
:
number
,
height
:
number
,
colorFormat
:
RenderTargetFormat
,
depthStencilFormat
:
RenderTargetFormat
,
generateMipmap
:
boolean
,
sRGB
:
boolean
,
multiSamples
:
number
,
)
:
GLESInternalRT
参数
width
:
number
height
:
number
colorFormat
:
RenderTargetFormat
depthStencilFormat
:
RenderTargetFormat
generateMipmap
:
boolean
sRGB
:
boolean
multiSamples
:
number
返回
GLESInternalRT
create
Render
Texture
Cube
Internal
createRenderTextureCubeInternal
(
dimension
:
TextureDimension
,
size
:
number
,
format
:
RenderTargetFormat
,
generateMipmap
:
boolean
,
sRGB
:
boolean
,
)
:
GLESInternalTex
参数
dimension
:
TextureDimension
size
:
number
format
:
RenderTargetFormat
generateMipmap
:
boolean
sRGB
:
boolean
返回
GLESInternalTex
create
Texture3DInternal
createTexture3DInternal
(
dimension
:
TextureDimension
,
width
:
number
,
height
:
number
,
depth
:
number
,
format
:
TextureFormat
,
generateMipmap
:
boolean
,
sRGB
:
boolean
,
premultipliedAlpha
:
boolean
,
)
:
GLESInternalTex
参数
dimension
:
TextureDimension
width
:
number
height
:
number
depth
:
number
format
:
TextureFormat
generateMipmap
:
boolean
sRGB
:
boolean
premultipliedAlpha
:
boolean
返回
GLESInternalTex
create
Texture
Internal
createTextureInternal
(
dimension
:
TextureDimension
,
width
:
number
,
height
:
number
,
format
:
TextureFormat
,
generateMipmap
:
boolean
,
sRGB
:
boolean
,
premultipliedAlpha
:
boolean
,
)
:
GLESInternalTex
为 Texture 创建 InternalTexture
参数
dimension
:
TextureDimension
width
:
number
height
:
number
format
:
TextureFormat
generateMipmap
:
boolean
sRGB
:
boolean
premultipliedAlpha
:
boolean
返回
GLESInternalTex
init
Video
Texture
Data
initVideoTextureData
(
texture
:
GLESInternalTex
)
:
void
参数
texture
:
GLESInternalTex
返回
void
read
Render
Target
Pixel
Data
readRenderTargetPixelData
(
renderTarget
:
GLESInternalRT
,
xOffset
:
number
,
yOffset
:
number
,
width
:
number
,
height
:
number
,
out
:
ArrayBufferView
,
)
:
ArrayBufferView
参数
renderTarget
:
GLESInternalRT
xOffset
:
number
yOffset
:
number
width
:
number
height
:
number
out
:
ArrayBufferView
返回
ArrayBufferView
已被弃用
请使用readRenderTargetPixelDataAsync函数代替
read
Render
Target
Pixel
Data
Async
readRenderTargetPixelDataAsync
(
renderTarget
:
GLESInternalRT
,
xOffset
:
number
,
yOffset
:
number
,
width
:
number
,
height
:
number
,
out
:
ArrayBufferView
,
)
:
Promise
<
ArrayBufferView
>
参数
renderTarget
:
GLESInternalRT
xOffset
:
number
yOffset
:
number
width
:
number
height
:
number
out
:
ArrayBufferView
返回
Promise
<
ArrayBufferView
>
set
CubeDDSData
setCubeDDSData
(
texture
:
GLESInternalTex
,
ddsInfo
:
DDSTextureInfo
)
:
void
参数
texture
:
GLESInternalTex
ddsInfo
:
DDSTextureInfo
返回
void
set
Cube
Image
Data
setCubeImageData
(
texture
:
GLESInternalTex
,
sources
:
(
HTMLImageElement
|
HTMLCanvasElement
|
ImageBitmap
)
[]
,
premultiplyAlpha
:
boolean
,
invertY
:
boolean
,
)
:
void
参数
texture
:
GLESInternalTex
sources
: (
HTMLImageElement
|
HTMLCanvasElement
|
ImageBitmap
)
[]
premultiplyAlpha
:
boolean
invertY
:
boolean
返回
void
set
CubeKTXData
setCubeKTXData
(
texture
:
GLESInternalTex
,
ktxInfo
:
KTXTextureInfo
)
:
void
参数
texture
:
GLESInternalTex
ktxInfo
:
KTXTextureInfo
返回
void
set
Cube
Pixels
Data
setCubePixelsData
(
texture
:
GLESInternalTex
,
source
:
ArrayBufferView
[]
,
premultiplyAlpha
:
boolean
,
invertY
:
boolean
,
)
:
void
参数
texture
:
GLESInternalTex
source
:
ArrayBufferView
[]
premultiplyAlpha
:
boolean
invertY
:
boolean
返回
void
set
Cube
Sub
Pixel
Data
setCubeSubPixelData
(
texture
:
GLESInternalTex
,
source
:
ArrayBufferView
[]
,
mipmapLevel
:
number
,
generateMipmap
:
boolean
,
xOffset
:
number
,
yOffset
:
number
,
width
:
number
,
height
:
number
,
premultiplyAlpha
:
boolean
,
invertY
:
boolean
,
)
:
void
参数
texture
:
GLESInternalTex
source
:
ArrayBufferView
[]
mipmapLevel
:
number
generateMipmap
:
boolean
xOffset
:
number
yOffset
:
number
width
:
number
height
:
number
premultiplyAlpha
:
boolean
invertY
:
boolean
返回
void
set
Texture3DImage
Data
setTexture3DImageData
(
texture
:
GLESInternalTex
,
source
:
HTMLImageElement
[]
|
HTMLCanvasElement
[]
|
ImageBitmap
[]
,
depth
:
number
,
premultiplyAlpha
:
boolean
,
invertY
:
boolean
,
)
:
void
参数
texture
:
GLESInternalTex
source
:
HTMLImageElement
[]
|
HTMLCanvasElement
[]
|
ImageBitmap
[]
depth
:
number
premultiplyAlpha
:
boolean
invertY
:
boolean
返回
void
set
Texture3DPixels
Data
setTexture3DPixelsData
(
texture
:
GLESInternalTex
,
source
:
ArrayBufferView
,
depth
:
number
,
premultiplyAlpha
:
boolean
,
invertY
:
boolean
,
)
:
void
参数
texture
:
GLESInternalTex
source
:
ArrayBufferView
depth
:
number
premultiplyAlpha
:
boolean
invertY
:
boolean
返回
void
set
Texture3DSub
Pixels
Data
setTexture3DSubPixelsData
(
texture
:
GLESInternalTex
,
source
:
ArrayBufferView
,
mipmapLevel
:
number
,
generateMipmap
:
boolean
,
xOffset
:
number
,
yOffset
:
number
,
zOffset
:
number
,
width
:
number
,
height
:
number
,
depth
:
number
,
premultiplyAlpha
:
boolean
,
invertY
:
boolean
,
)
:
void
参数
texture
:
GLESInternalTex
source
:
ArrayBufferView
mipmapLevel
:
number
generateMipmap
:
boolean
xOffset
:
number
yOffset
:
number
zOffset
:
number
width
:
number
height
:
number
depth
:
number
premultiplyAlpha
:
boolean
invertY
:
boolean
返回
void
set
Texture
Compare
Mode
setTextureCompareMode
(
texture
:
GLESInternalTex
,
compareMode
:
TextureCompareMode
,
)
:
TextureCompareMode
参数
texture
:
GLESInternalTex
compareMode
:
TextureCompareMode
返回
TextureCompareMode
set
TextureDDSData
setTextureDDSData
(
texture
:
GLESInternalTex
,
ddsInfo
:
DDSTextureInfo
)
:
void
参数
texture
:
GLESInternalTex
ddsInfo
:
DDSTextureInfo
返回
void
set
TextureHDRData
setTextureHDRData
(
texture
:
GLESInternalTex
,
hdrInfo
:
HDRTextureInfo
)
:
void
参数
texture
:
GLESInternalTex
hdrInfo
:
HDRTextureInfo
返回
void
set
Texture
Image
Data
setTextureImageData
(
texture
:
GLESInternalTex
,
source
:
HTMLImageElement
|
HTMLCanvasElement
|
ImageBitmap
,
premultiplyAlpha
:
boolean
,
invertY
:
boolean
,
)
:
void
参数
texture
:
GLESInternalTex
source
:
HTMLImageElement
|
HTMLCanvasElement
|
ImageBitmap
premultiplyAlpha
:
boolean
invertY
:
boolean
返回
void
set
TextureKTXData
setTextureKTXData
(
texture
:
GLESInternalTex
,
ktxInfo
:
KTXTextureInfo
)
:
void
参数
texture
:
GLESInternalTex
ktxInfo
:
KTXTextureInfo
返回
void
set
Texture
Pixels
Data
setTexturePixelsData
(
texture
:
GLESInternalTex
,
source
:
ArrayBufferView
,
premultiplyAlpha
:
boolean
,
invertY
:
boolean
,
)
:
void
参数
texture
:
GLESInternalTex
source
:
ArrayBufferView
premultiplyAlpha
:
boolean
invertY
:
boolean
返回
void
set
Texture
Sub
Image
Data
setTextureSubImageData
(
texture
:
GLESInternalTex
,
source
:
HTMLImageElement
|
HTMLCanvasElement
|
ImageBitmap
,
x
:
number
,
y
:
number
,
premultiplyAlpha
:
boolean
,
invertY
:
boolean
,
)
:
void
参数
texture
:
GLESInternalTex
source
:
HTMLImageElement
|
HTMLCanvasElement
|
ImageBitmap
x
:
number
y
:
number
premultiplyAlpha
:
boolean
invertY
:
boolean
返回
void
set
Texture
Sub
Pixels
Data
setTextureSubPixelsData
(
texture
:
GLESInternalTex
,
source
:
ArrayBufferView
,
mipmapLevel
:
number
,
generateMipmap
:
boolean
,
xOffset
:
number
,
yOffset
:
number
,
width
:
number
,
height
:
number
,
premultiplyAlpha
:
boolean
,
invertY
:
boolean
,
)
:
void
参数
texture
:
GLESInternalTex
source
:
ArrayBufferView
mipmapLevel
:
number
generateMipmap
:
boolean
xOffset
:
number
yOffset
:
number
width
:
number
height
:
number
premultiplyAlpha
:
boolean
invertY
:
boolean
返回
void
unbind
Render
Target
unbindRenderTarget
(
renderTarget
:
GLESInternalRT
)
:
void
参数
renderTarget
:
GLESInternalRT
返回
void
update
Video
Texture
updateVideoTexture
(
texture
:
GLESInternalTex
,
video
:
HTMLVideoElement
,
premultiplyAlpha
:
boolean
,
invertY
:
boolean
,
)
:
void
参数
texture
:
GLESInternalTex
video
:
HTMLVideoElement
premultiplyAlpha
:
boolean
invertY
:
boolean
返回
void
切换版本:
显示设置
成员可见性
继承
外部
配色
自动
浅色
深色
目录
构造函数
constructor
属性
need
Bitmap
方法
bindout
Screen
Target
bind
Render
Target
create
Render
Target
Cube
Internal
create
Render
Target
Depth
Texture
create
Render
Target
Internal
create
Render
Texture
Cube
Internal
create
Texture3DInternal
create
Texture
Internal
init
Video
Texture
Data
read
Render
Target
Pixel
Data
read
Render
Target
Pixel
Data
Async
set
CubeDDSData
set
Cube
Image
Data
set
CubeKTXData
set
Cube
Pixels
Data
set
Cube
Sub
Pixel
Data
set
Texture3DImage
Data
set
Texture3DPixels
Data
set
Texture3DSub
Pixels
Data
set
Texture
Compare
Mode
set
TextureDDSData
set
TextureHDRData
set
Texture
Image
Data
set
TextureKTXData
set
Texture
Pixels
Data
set
Texture
Sub
Image
Data
set
Texture
Sub
Pixels
Data
unbind
Render
Target
update
Video
Texture
LayaAir3引擎API
加载中……
为 Texture 创建 InternalTexture