Packagecom.yogurt3d.core.materials
Classpublic class MaterialBitmap
InheritanceMaterialBitmap Inheritance MaterialTexture Inheritance Material Inheritance EngineObject Inheritance Object

Material for backward compability. This material is used for basic texturing, without light of self shadowing.

View the examples



Public Properties
 PropertyDefined By
 InheritedambientColor : Color
Material
 Inheritedculling : String
Material
 InheriteddiffuseColor : Color
Material
 InheriteddoubleSided : Boolean
Material
 InheritedemissiveColor : Color
Material
 InheritedlightMap : TextureMap
MaterialTexture
 InheritedonOpacityChanged : Signal
Material
 Inheritedopacity : Number
Material
 Inheritedshaders : Vector.<Shader>
Material
 InheritedshadowAndLightMapChannel : uint
MaterialTexture
 InheritedspecularColor : Color
Material
 InheritedsystemID : String
[read-only] Automatically assigned id.
EngineObject
 Inheritedtexture : TextureMap
MaterialTexture
 InheritedtextureChannel : uint
MaterialTexture
 InheriteduserID : String
Identification string can be assigned by developer to identify objects.
EngineObject
Public Methods
 MethodDefined By
  
MaterialBitmap(_texture:BitmapData, _initInternals:Boolean = true)
Constructor
MaterialBitmap
 Inherited
Creates new clone object.
EngineObject
 Inherited
dispose():void
[override]
MaterialTexture
 Inherited
[override]
MaterialTexture
 Inherited
disposeGPU():void
[override]
MaterialTexture
 Inherited
Removes all external referances and clears internals.
EngineObject
 Inherited
renew():void
Renews object internals and resets properties of object.
EngineObject
 Inherited
toString():String
Returns a string identifier on this object
EngineObject
Protected Methods
 MethodDefined By
 Inherited
[override]
Material
 Inherited
[override]
MaterialTexture
Constructor Detail
MaterialBitmap()Constructor
public function MaterialBitmap(_texture:BitmapData, _initInternals:Boolean = true)

Constructor

Parameters
_texture:BitmapData — Texture
 
_initInternals:Boolean (default = true)
Examples
Here is a sample usage to assign a texture to a SceneObject.
           sceneObgject.material = new MaterialBitmap( bitmapdata );