Delete old bsdf files
DELETE
ext/MitsubaLoader/bsdf/BSDFUtil.h
-#ifndef __BSDF_UTIL_H_INCLUDED__
-#define __BSDF_UTIL_H_INCLUDED__
-
-
-
-#endif
\ No newline at end of file

DELETE
ext/MitsubaLoader/bsdf/CElementBSDFDiffuse.cpp
-#include "../../ext/MitsubaLoader/bsdf/CElementBSDFDiffuse.h"
-
-#include "../../ext/MitsubaLoader/ParserUtil.h"
-#include "../../ext/MitsubaLoader/CSimpleElement.h"
-#include "../../ext/MitsubaLoader/CElementTransform.h"
-#include "irr/asset/IMeshManipulator.h"
-
-namespace irr { namespace ext { namespace MitsubaLoader {
-
-bool CElementBSDFDiffuse::processAttributes(const char** _atts)
-{
- //only type is an acceptable argument
- for (int i = 0; _atts[i]; i += 2)
- {
- if (std::strcmp(_atts[i], "type"))
- {
- ParserLog::wrongAttribute(_atts[i], getLogName());
- return false;
- }
- }
-
- return true;
-}
-
-bool CElementBSDFDiffuse::onEndTag(asset::IAssetManager& _assetManager, IElement* _parent)
-{
- return _parent->processChildData(this);
-}
-
-bool CElementBSDFDiffuse::processChildData(IElement* _child)
-{
- switch (_child->getType())
- {
- case IElement::Type::COLOR:
- {
- CElementString* stringElement = static_cast<CElementString*>(_child);
- std::string elementName = stringElement->getNameAttribute();
-
- if (elementName == "filename")
- {
-
- }
- else
- {
- ParserLog::mitsubaLoaderError("Unqueried attribute " + elementName + " in element \"shape\"");
- }
-
- return true;
- }
- case IElement::Type::TEXTURE:
- {
- CElementFloat* floatElement = static_cast<CElementFloat*>(_child);
- std::string elementName = floatElement->getNameAttribute();
-
- if (elementName == "maxSmoothAngle")
- {
- }
- else
- {
- //warning
- ParserLog::mitsubaLoaderError("Unqueried attribute " + elementName + " in element \"shape\"");
- }
-
- return true;
-
- }
- case IElement::Type::BOOLEAN:
- {
- CElementBoolean* boolElement = static_cast<CElementBoolean*>(_child);
- std::string elementName = boolElement->getNameAttribute();
-
- if (elementName == "faceNormals")
- {
-
- }
- else if (elementName == "flipNormals")
- {
-
- }
- else if (elementName == "flipTexCoords")
- {
-
- }
- else if (elementName == "collapse")
- {
-
- }
- else
- {
- //warning
- ParserLog::mitsubaLoaderError("Unqueried attribute " + elementName + " in element \"shape\"");
- }
-
- return true;
- }
- default:
- ParserLog::wrongChildElement(getLogName(), _child->getLogName());
- return false;
- }
-}
-
-}
-}
-}
\ No newline at end of file

DELETE
ext/MitsubaLoader/bsdf/CElementBSDFDiffuse.h
-#ifndef __C_ELEMENT_BSDF_DIFFUSE_H_INCLUDED__
-#define __C_ELEMENT_BSDF_DIFFUSE_H_INCLUDED__
-
-#include "../../../ext/MitsubaLoader/CSimpleElement.h"
-
-
-
-namespace irr { namespace ext { namespace MitsubaLoader {
-
-class CElementBSDFDiffuse : public IElement
-{
-public:
- CElementBSDFDiffuse()
- :usesTexture(false) {};
-
- virtual bool processAttributes(const char** _args) override;
- virtual bool onEndTag(asset::IAssetManager& _assetManager, IElement* _parent) override;
- virtual IElement::Type getType() const override { return IElement::Type::MATERIAL; };
- virtual std::string getLogName() const override { return "BSDF_diffuse"; };
- virtual bool processChildData(IElement* child) override;
-
-private:
- bool usesTexture;
- union
- {
- //TODO: texture
- core::vectorSIMDf color;
- };
-
-};
-
-
-}
-}
-}
-
-#endif
\ No newline at end of file

Delete old bsdf files