| 12345678910111213141516171819202122232425262728 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #include "Extensions/BsMaterialEx.h"
- #include "CoreThread/BsCoreThread.h"
- namespace bs
- {
- void MaterialEx::setTexture(const HMaterial& thisPtr, const String& name, const ResourceHandle<Texture>& value,
- UINT32 mipLevel, UINT32 numMipLevels, UINT32 arraySlice, UINT32 numArraySlices)
- {
- thisPtr->setTexture(name, value, TextureSurface(mipLevel, numMipLevels, arraySlice, numArraySlices));
- }
- HTexture MaterialEx::getTexture(const HMaterial& thisPtr, const String& name)
- {
- return thisPtr->getTexture(name);
- }
- void MaterialEx::setSpriteTexture(const HMaterial& thisPtr, const String& name, const HSpriteTexture& value)
- {
- thisPtr->setSpriteTexture(name, value);
- }
- HSpriteTexture MaterialEx::getSpriteTexture(const HMaterial& thisPtr, const String& name)
- {
- return thisPtr->getSpriteTexture(name);
- }
- }
|