/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

  1. package away3d.core.base
  2. {
  3. import away3d.animators.IAnimator;
  4. import away3d.materials.MaterialBase;
  5. /**
  6. * IMaterialOwner provides an interface for objects that can use materials.
  7. */
  8. public interface IMaterialOwner
  9. {
  10. /**
  11. * The material with which to render the object.
  12. */
  13. function get material():MaterialBase;
  14. function set material(value:MaterialBase):void;
  15. /**
  16. * The animation used by the material to assemble the vertex code.
  17. */
  18. function get animator():IAnimator; // in most cases, this will in fact be null
  19. }
  20. }