| Package | alternativa.engine3d.materials |
| Class | public class Material |
| Inheritance | Material Object |
| Subclasses | EncodeDepthMaterial, FillMaterial, ParserMaterial, TextureMaterial |
| Property | Defined By | ||
|---|---|---|---|
| name : String
Name of the material
| Material | ||
| Method | Defined By | ||
|---|---|---|---|
Material() | Material | ||
Duplicates an instance of a Material. | Material | ||
getResources(resourceType:Class = null):Vector.<Resource>
Gather resources used by material for uploading into context3D. | Material | ||
| Method | Defined By | ||
|---|---|---|---|
clonePropertiesFrom(source:Material):void
Duplicates basic properties. | Material | ||
| name | property |
public var name:StringName of the material
| Material | () | Constructor |
public function Material()| clone | () | method |
public function clone():MaterialDuplicates an instance of a Material.
ReturnsMaterial — A new Material object that is identical to the original.
|
| clonePropertiesFrom | () | method |
protected function clonePropertiesFrom(source:Material):void
Duplicates basic properties. Invoked byclone().
Parameters
source:Material — Source of properties to be copied from.
|
| getResources | () | method |
public function getResources(resourceType:Class = null):Vector.<Resource>Gather resources used by material for uploading into context3D.
Parameters
resourceType:Class (default = null) — Gather the resources given type only.
|
Vector.<Resource> — Vector consists of resources.
|
See also