Hierarchy
Texture
Implements
ITexture
Index
Constructors
constructor
Properties
filter
format
gl
size
target
tex
type
wrap
Methods
bind
configure
configure
Filter
configure
Image
configure
Image2d
configure
Image3d
configureLOD
configure
Levels
configure
Wrap
release
unbind
Constructors
constructor
new
Texture
(
gl
:
WebGLRenderingContext
, opts
?:
Partial
<
TextureOpts
>
)
:
Texture
Parameters
gl:
WebGLRenderingContext
opts:
Partial
<
TextureOpts
>
= ...
Returns
Texture
Properties
filter
filter
:
TextureFilter
[]
format
format
:
TextureFormat
gl
gl
:
WebGLRenderingContext
size
size
:
number
[]
target
target
:
TextureTarget
tex
tex
:
WebGLTexture
type
type
:
TextureType
wrap
wrap
:
TextureRepeat
[]
Methods
bind
bind
(
id
?:
number
)
:
boolean
Parameters
id:
number
= 0
Returns
boolean
true, if successful
configure
configure
(
opts
?:
Partial
<
TextureOpts
>
, unbind
?:
boolean
)
:
boolean
Parameters
opts:
Partial
<
TextureOpts
>
= ...
unbind:
boolean
= true
Returns
boolean
Protected
configure
Filter
configure
Filter
(
target
:
TextureTarget
, opts
:
Partial
<
TextureOpts
>
)
:
void
Parameters
target:
TextureTarget
opts:
Partial
<
TextureOpts
>
Returns
void
Protected
configure
Image
configure
Image
(
target
:
TextureTarget
, opts
:
Partial
<
TextureOpts
>
)
:
void
Parameters
target:
TextureTarget
opts:
Partial
<
TextureOpts
>
Returns
void
Protected
configure
Image2d
configure
Image2d
(
target
:
TextureTarget
, opts
:
Partial
<
TextureOpts
>
)
:
void
Parameters
target:
TextureTarget
opts:
Partial
<
TextureOpts
>
Returns
void
Protected
configure
Image3d
configure
Image3d
(
target
:
TextureTarget
, opts
:
Partial
<
TextureOpts
>
)
:
void
Parameters
target:
TextureTarget
opts:
Partial
<
TextureOpts
>
Returns
void
Protected
configureLOD
configureLOD
(
target
:
TextureTarget
, opts
:
Partial
<
TextureOpts
>
)
:
void
Parameters
target:
TextureTarget
opts:
Partial
<
TextureOpts
>
Returns
void
Protected
configure
Levels
configure
Levels
(
target
:
TextureTarget
, opts
:
Partial
<
TextureOpts
>
)
:
void
Parameters
target:
TextureTarget
opts:
Partial
<
TextureOpts
>
Returns
void
Protected
configure
Wrap
configure
Wrap
(
target
:
TextureTarget
, opts
:
Partial
<
TextureOpts
>
)
:
void
Parameters
target:
TextureTarget
opts:
Partial
<
TextureOpts
>
Returns
void
release
release
(
)
:
boolean
Returns
boolean
unbind
unbind
(
id
?:
number
)
:
boolean
Parameters
id:
number
= 0
Returns
boolean
true, if successful
Exports
Texture
constructor
filter
format
gl
size
target
tex
type
wrap
bind
configure
configure
Filter
configure
Image
configure
Image2d
configure
Image3d
configureLOD
configure
Levels
configure
Wrap
release
unbind
Generated using
TypeDoc