/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
 */

#pragma once

#include <ft2build.h>
#include FT_FREETYPE_H
#include <memory>

namespace OpenVulkano::Scene
{
	struct LibDeleter
	{
		void operator()(FT_Library lib) { FT_Done_FreeType(lib); }
	};

	struct FaceDeleter
	{
		void operator()(FT_Face face) { FT_Done_Face(face); }
	};

	using FtLibraryRecPtr = std::unique_ptr<FT_LibraryRec_, LibDeleter>;
	using FtFaceRecPtr = std::unique_ptr<FT_FaceRec_, FaceDeleter>;

}