BsMaterialEx.cpp 770 B

123456789101112131415161718
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #include "Extensions/BsMaterialEx.h"
  4. #include "CoreThread/BsCoreThread.h"
  5. namespace bs
  6. {
  7. void MaterialEx::setTexture(const HMaterial& thisPtr, const String& name, const ResourceHandle<Texture>& value,
  8. UINT32 mipLevel, UINT32 numMipLevels, UINT32 arraySlice, UINT32 numArraySlices)
  9. {
  10. thisPtr->setTexture(name, value, TextureSurface(mipLevel, numMipLevels, arraySlice, numArraySlices));
  11. }
  12. HTexture MaterialEx::getTexture(const HMaterial& thisPtr, const String& name)
  13. {
  14. return thisPtr->getTexture(name);
  15. }
  16. }