Home Reference Source
public class | source

ClassicMaterial

Extends:

GLBoostObjectL_AbstractMaterial → ClassicMaterial

Constructor Summary

Public Constructor
public

constructor(glBoostContext: *)

Member Summary

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

Method Summary

Public Methods
public

clone()

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 L_AbstractMaterial
public get
public set
public get
public set
public get
public set
public get
public set
public get

name: *

public set

name: *

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

states: *

public set

states: *

private
private
private

_gl: *

private
private
private
private
private
private
private
private
private
private

_stateFunctionsToReset: {"blendColor": *, "blendEquationSeparate": *, "blendFuncSeparate": *, "colorMask": *, "cullFace": *, "depthFunc": *, "depthMask": *, "depthRange": *, "frontFace": *, "lineWidth": *, "polygonOffset": *}

private

_states: {"enable": *, "functions": *}

private
private
private
private
private
public

addSemanticsDic(uniform: *, uniformName: *)

public

clone(): *

public
public

getTexture(userFlavorName: *): *

public

getTextureContributionRate(textureUserFlavorName: *): *

public

getTextureFromPurpose(purpose: *): *

public
public
public

getTexturePurpose(userFlavorNameOfTexture: *): *

public
public

getUniform(glslProgram: *, uniformLocationName: *): *

public
public

getVertexN(geom: *): *

public
public
public
public

registerTextureUnitToUniform(texturePurpose: *, shaderProgram: *, uniformName: *)

public

removeSemanticsDic(uniform: *)

public

removeTexture(userFlavorName: *, discardTexture: *)

public
public
public

setTexture(texture: *, purpose: *)

public

setTextureContributionRate(textureUserFlavorName: *, rateVec4: *)

public

setTexturePurpose(userFlavorNameOfTexture: *, purpose: *)

public

setUniform(glslProgram: *, uniformLocationName: *, uniformLocation: *)

public

setUpStates(mesh: *)

public

setUpTexture(textureName: *, textureUnitIndex: *): *

bind the texture.

public

setVertexN(geom: *, num: *)

public
public

tearDownTexture(textureName: *, textureUnitIndex: *)

public

updateTextureInfo(texturePurpose: *, uniformName: *)

private
private

Public Constructors

public constructor(glBoostContext: *) source

Override:

L_AbstractMaterial#constructor

Params:

NameTypeAttributeDescription
glBoostContext *

Public Members

public set ambientColor: Vector4 source

public get ambientColor: * source

public set baseColor: Vector4 source

public get baseColor: * source

public set diffuseColor: Vector4 source

public get diffuseColor: * source

public set specularColor: Vector4 source

public get specularColor: * source

public get wireframeWidthRelativeScale: * source

Private Members

private _ambientColor: Vector4 source

private _baseColor: Vector4 source

private _diffuseColor: Vector4 source

private _specularColor: Vector4 source

private _wireframeWidthRelativeScale: number source

Public Methods

public clone() source

Override:

L_AbstractMaterial#clone