/src/away3d/core/base/IMaterialOwner.as
http://github.com/away3d/away3d-core-fp11 · ActionScript · 23 lines · 11 code · 3 blank · 9 comment · 0 complexity · c2fdf32768815560230bf3990a32a45b MD5 · raw file
- package away3d.core.base
- {
- import away3d.animators.IAnimator;
- import away3d.materials.MaterialBase;
-
- /**
- * IMaterialOwner provides an interface for objects that can use materials.
- */
- public interface IMaterialOwner
- {
- /**
- * The material with which to render the object.
- */
- function get material():MaterialBase;
-
- function set material(value:MaterialBase):void;
-
- /**
- * The animation used by the material to assemble the vertex code.
- */
- function get animator():IAnimator; // in most cases, this will in fact be null
- }
- }