/***************************************************************************
*                                                                          *
*  Copyright (C) Golaem S.A.  All Rights Reserved.                         *
*                                                                          *
****************************************************************************/

#pragma once

#include "glmRTTI.h"

#include <glmGolaemCharacterDeclarations.h> // GolaemCharacter declarations
#include "glmLODLevelFlags.h"

namespace glm
{
    class GeometryAssetV3;

    /**
	* \brief Geometry Asset
	*/
    class GLM_CORE_API GeometryAssetV4
    {
        GLM_RTTI("e61a7136-7931-41a6-bc4c-7c5c7a32b740", GeometryAssetV4, addAttributes);

    public:
        GLM_CLASS_STAT_ID( glm::MemoryStatIds::GolaemShared);

        /// The geometry file
        glm::GlmString _filename;

        /// bounding box halfExtents
        Vector3 _halfExtentsYUp;

        uint32_t _lodLevel; // single LODLevelFlags::Value declaring this LOD step 

        float _LODMinDistance;
        float _LODMaxDistance;

        GeometryAssetV4();

        void createFromV3(const GeometryAssetV3& geoAssetV2);

        GeometryFileType::Value getGeometryFileType() const;

        void getAbsoluteFile(const GlmString& inFile, glm::GlmString& resultFilePath, const char* referenceDirectory) const;

        void getAbsoluteGeometryFile(glm::GlmString& resultFilePath, const char* referenceDirectory) const;
        
    protected:
        /**
		* \brief Inspection needed method declaring the inspectable attributes.
		*/
        static void addAttributes();
    };
} // namespace glm
