Search
Preparing search index...
The search index is not available
hwoa-rang-gl
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
hwoa-rang-gl
core/cube-texture
CubeTexture
Class CubeTexture
Hierarchy
Texture
CubeTexture
Index
Constructors
constructor
Properties
#targets
anisotropy
Extension
format
gl
height
internal
Format
target
texture
type
width
Methods
add
Sides
bind
delete
from
Data
from
Image
from
Size
generate
Mipmap
get
Texture
set
Anisotropy
set
Format
set
IsFlip
set
Mag
Filter
set
Min
Filter
set
Pixel
Store
set
Wrap
unbind
is
Power
Of2
Constructors
constructor
new
Cube
Texture
(
gl
:
WebGLRenderingContext
, __namedParameters
?:
TextureInterface
)
:
CubeTexture
Parameters
gl:
WebGLRenderingContext
__namedParameters:
TextureInterface
= ...
Returns
CubeTexture
Properties
Private
#targets
#targets
:
number
[]
= ...
Protected
anisotropy
Extension
anisotropy
Extension
:
EXT_texture_filter_anisotropic
Protected
format
format
:
number
Protected
gl
gl
:
WebGLRenderingContext
Protected
height
height
:
number
Protected
internal
Format
internal
Format
:
number
Protected
target
target
:
number
Protected
texture
texture
:
null
|
WebGLTexture
Protected
type
type
:
number
Protected
width
width
:
number
Methods
add
Sides
add
Sides
(
sidesImages
:
(
HTMLImageElement
|
HTMLCanvasElement
)
[]
)
:
CubeTexture
Parameters
sidesImages:
(
HTMLImageElement
|
HTMLCanvasElement
)
[]
Returns
CubeTexture
bind
bind
(
)
:
CubeTexture
Binds the texture to the target
Returns
CubeTexture
delete
delete
(
)
:
void
Returns
void
from
Data
from
Data
(
dataArray
:
any
, width
:
number
, height
:
number
)
:
CubeTexture
Parameters
dataArray:
any
width:
number
height:
number
Returns
CubeTexture
from
Image
from
Image
(
image
:
HTMLImageElement
|
HTMLCanvasElement
|
HTMLVideoElement
, width
?:
number
, height
?:
number
)
:
CubeTexture
Parameters
image:
HTMLImageElement
|
HTMLCanvasElement
|
HTMLVideoElement
width:
number
= ...
height:
number
= ...
Returns
CubeTexture
from
Size
from
Size
(
width
:
number
, height
:
number
)
:
CubeTexture
Parameters
width:
number
height:
number
Returns
CubeTexture
generate
Mipmap
generate
Mipmap
(
)
:
CubeTexture
Returns
CubeTexture
get
Texture
get
Texture
(
)
:
null
|
WebGLTexture
Returns
null
|
WebGLTexture
set
Anisotropy
set
Anisotropy
(
anisotropyLevel
:
number
)
:
CubeTexture
Parameters
anisotropyLevel:
number
Returns
CubeTexture
set
Format
set
Format
(
format
?:
number
, internalFormat
?:
number
, type
?:
number
)
:
CubeTexture
Parameters
format:
number
= ...
internalFormat:
number
= ...
type:
number
= ...
Returns
CubeTexture
set
IsFlip
set
IsFlip
(
flip
?:
number
)
:
CubeTexture
Parameters
flip:
number
= 1
Returns
CubeTexture
set
Mag
Filter
set
Mag
Filter
(
filter
?:
number
)
:
CubeTexture
Parameters
filter:
number
= ...
Returns
CubeTexture
set
Min
Filter
set
Min
Filter
(
filter
?:
number
)
:
CubeTexture
Parameters
filter:
number
= ...
Returns
CubeTexture
set
Pixel
Store
set
Pixel
Store
(
name
:
number
, params
:
number
)
:
CubeTexture
Parameters
name:
number
params:
number
Returns
CubeTexture
set
Wrap
set
Wrap
(
wrapS
?:
number
, wrapT
?:
number
)
:
CubeTexture
Parameters
wrapS:
number
= ...
wrapT:
number
= ...
Returns
CubeTexture
unbind
unbind
(
)
:
CubeTexture
Unbinds the texture
Returns
CubeTexture
Static
is
Power
Of2
is
Power
Of2
(
width
:
number
, height
:
number
)
:
boolean
Parameters
width:
number
height:
number
Returns
boolean
Exports
core/cube-
texture
Cube
Texture
constructor
#targets
anisotropy
Extension
format
gl
height
internal
Format
target
texture
type
width
add
Sides
bind
delete
from
Data
from
Image
from
Size
generate
Mipmap
get
Texture
set
Anisotropy
set
Format
set
IsFlip
set
Mag
Filter
set
Min
Filter
set
Pixel
Store
set
Wrap
unbind
is
Power
Of2
Generated using
TypeDoc
Binds the texture to the target