//********************************** Banshee Engine (www.banshee3d.com) **************************************************// //**************** Copyright (c) 2016 Marko Pintera (marko.pintera@gmail.com). All rights reserved. **********************// namespace BansheeEngine { /** @addtogroup Rendering * @{ */ public partial class Material { /// /// Returns a texture assigned to the material. /// /// Name of the texture parameter. /// Texture assigned to the specified material public RRef GetTexture(string name) { return Internal_getTexture(mCachedPtr, name); } /// /// Assigns a texture to the specified material parameter. Allows you to specify a surface parameter that allows you /// to bind only a sub-set of the texture. /// /// Name of the texture parameter. /// Texture resource to assign. /// Subset of the texture to assign. public void SetTexture(string name, RRef texture, TextureSurface surface) { Internal_setTexture(mCachedPtr, name, texture, surface.mipLevel, surface.numMipLevels, surface.face, surface.numFaces); } /// /// Assigns a texture to the specified material parameter. /// /// Name of the texture parameter. /// Texture resource to assign. public void SetTexture(string name, RRef texture) { Internal_setTexture(mCachedPtr, name, texture, 0, 0, 0, 0); } } /** @} */ }