Home Reference Source
public class | source

InternalDataTexture

Extends:

GLBoostObjectAbstractTexture → InternalDataTexture

Static Member Summary

Static Public Members
public static

Static Method Summary

Static Public Methods
public static

getInstance(glBoostContext: *): *

Constructor Summary

Public Constructor
public

constructor(glBoostContext: *, enforcer: *)

Member Summary

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

Method Summary

Public Methods
public

generateTextureFromFloat32Array(float32ArrayData: *, isKeepBound: *)

public

getObjectDataIndexAt(i: *, macroConstant: *): *

Private Methods
private

_generateTextureInnerWithArrayBufferView(imgCanvas: *, width: *, height: *, isKeepBound: *): *

private

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

Static Public Members

public static [singleton]: * source

Static Public Methods

public static getInstance(glBoostContext: *): * source

Params:

NameTypeAttributeDescription
glBoostContext *

Return:

*

Public Constructors

public constructor(glBoostContext: *, enforcer: *) 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 *
enforcer *

Public Members

public get dataTextureSize: * source

public get isImageAssignedForTexture: * source

public get isTextureReady: * source

public userFlavorName: string source

Override:

GLBoostObject#userFlavorName

Private Members

private _dataTextureBuffer: * source

private _height: number source

private _isTextureReady: boolean source

private _jointSetDataLength: * source

private _jointSetStartIndex: * source

private _lightDataLength: * source

private _lightsStartIndex: * source

private _materialDataLength: * source

private _materialsStartIndex: * source

private _miscStartIndex: number source

private _morphsDataLength: * source

private _morphsStartIndex: * source

private _objectDataLength: * source

private _objectsStartIndex: * source

private _texture: * source

private _width: number source

Public Methods

public generateTextureFromFloat32Array(float32ArrayData: *, isKeepBound: *) source

Params:

NameTypeAttributeDescription
float32ArrayData *
isKeepBound *
  • optional
  • default: undefined

public getObjectDataIndexAt(i: *, macroConstant: *): * source

Params:

NameTypeAttributeDescription
i *
macroConstant *

Return:

*

Private Methods

private _generateTextureInnerWithArrayBufferView(imgCanvas: *, width: *, height: *, isKeepBound: *): * source

Params:

NameTypeAttributeDescription
imgCanvas *
width *
height *
isKeepBound *

Return:

*

private _onLoad() source