PageRenderTime 283ms CodeModel.GetById 161ms app.highlight 2ms RepoModel.GetById 79ms app.codeStats 0ms

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