Home Reference Source
public class | source

MutableTexture

Extends:

GLBoostObjectAbstractTexture → MutableTexture

Constructor Summary

Public Constructor
public

constructor(glBoostContext: *, width: *, height: *, level: *, internalFormat: *, format: *, type: *, magFileter: *, minFilter: *, wrapS: *, wrapT: *)

Member Summary

Public Members
public set
public get
public set
public get
public set
public get
Private Members
private
private
private

_fbo: *

private

_height: *

private
private
private

_width: *

Inherited Summary

From class GLBoostObject
public static
private static
private static
public get
public get
public get

Return the simple class-specific number.

public get
public get
public get
public get
public get
public get
public set
private
private
private
private
private
private
private
private
private
private
public
public
public
public

Return instance name.

public
private

_copy(instance: *)

private
From class AbstractTexture
public get

glTextureResource: *: nullliteral | existentialtypeparam

get the WebGL texture resource within this class.

public get

height: *

public get
public set
public get
public set
public get
public set
public get

width: *

private
private
private
public

getPixelValueAt(x: number, y: number, argByteArray: Uint8Array): Vector4

Origin is left bottom

public
public
public

setUp(textureUnitIndex: *): boolean

bind the texture.

public

tearDown(textureUnitIndex: *)

unbind the texture.

private

get a value nearest power of two.

private

_getResizedCanvas(image: *): *

private

check whether or not this texture size is power of two.

private

Public Constructors

public constructor(glBoostContext: *, width: *, height: *, level: *, internalFormat: *, format: *, type: *, magFileter: *, minFilter: *, wrapS: *, wrapT: *) source

The constructor of PointLight class. Do not construct this class directly.

  • @param {HTMLCanvas|string} canvas canvas or canvas' id string.

Override:

AbstractTexture#constructor

Params:

NameTypeAttributeDescription
glBoostContext *
width *
height *
level *
  • optional
  • default: undefined
internalFormat *
  • optional
  • default: 6408
format *
  • optional
  • default: 6408
type *
  • optional
  • default: 5121
magFileter *
  • optional
  • default: 9729
minFilter *
  • optional
  • default: 9729
wrapS *
  • optional
  • default: 33071
wrapT *
  • optional
  • default: 33071

Public Members

public set colorAttachment: * source

public get colorAttachment: * source

public set depthAttachment: * source

public get depthAttachment: * source

public set frameBufferObject: * source

public get frameBufferObject: * source

Private Members

private _colorAttachmentId: * source

private _depthAttachmentId: * source

private _fbo: * source

private _height: * source

private _isTextureReady: boolean source

private _texture: * source

private _width: * source