Home Reference Source
public class | source

CubeTexture

Extends:

GLBoostObjectAbstractTexture → CubeTexture

Constructor Summary

Public Constructor
public

constructor(glBoostContext: *, userFlavorName: *, parameters: *)

Member Summary

Public Members
public get
public
Private Members
private
private
private

Method Summary

Public Methods
public

async generateTextureFromBaseUri(baseUri: *, mipLevelNum: *): *

public

generateTextureFromSixSideImages(posXimages: *, negXimages: *, posYimages: *, negYimages: *, posZimages: *, negZimages: *)

Private Methods
private

_getParamWithAlternative(paramNumber: *, alternative: *): *

private

_getParameter(paramNumber: *): *

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: *, userFlavorName: *, parameters: *) 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 *
userFlavorName *
parameters *
  • optional
  • default: undefined

Public Members

public get isTextureReady: * source

public userFlavorName: * source

Override:

GLBoostObject#userFlavorName

Private Members

private _isTextureReady: boolean source

private _parameters: * source

private _texture: * source

Public Methods

public async generateTextureFromBaseUri(baseUri: *, mipLevelNum: *): * source

Params:

NameTypeAttributeDescription
baseUri *
mipLevelNum *

Return:

*

public generateTextureFromSixSideImages(posXimages: *, negXimages: *, posYimages: *, negYimages: *, posZimages: *, negZimages: *) source

Params:

NameTypeAttributeDescription
posXimages *
negXimages *
posYimages *
negYimages *
posZimages *
negZimages *

Private Methods

private _getParamWithAlternative(paramNumber: *, alternative: *): * source

Params:

NameTypeAttributeDescription
paramNumber *
alternative *

Return:

*

private _getParameter(paramNumber: *): * source

Params:

NameTypeAttributeDescription
paramNumber *

Return:

*