#include "Icons.h"
#include "DeerRender/Render/Texture.h"
#include "Deer/DataStore.h"

namespace Deer {
	Ref<Texture2D> Icons::scene_icon;
	Ref<Texture2D> Icons::folder_icon;
	Ref<Texture2D> Icons::add_icon;
	Ref<Texture2D> Icons::substract_icon;
	Ref<Texture2D> Icons::fill_icon;
	Ref<Texture2D> Icons::fill_empty_icon;
	Ref<Texture2D> Icons::box_select_icon;
	Ref<Texture2D> Icons::face_voxel_selection_icon;
	Ref<Texture2D> Icons::internal_voxel_selection_icon;
	Ref<Texture2D> Icons::info_icon;

	void Icons::setupIcons() {
		Icons::scene_icon = Texture2D::create(DataStore::rootPath / "Editor/icons/scene.png");
		Icons::folder_icon = Texture2D::create(DataStore::rootPath / "Editor/icons/folder.png");
		Icons::add_icon = Texture2D::create(DataStore::rootPath / "Editor/icons/add.png");
		Icons::substract_icon = Texture2D::create(DataStore::rootPath / "Editor/icons/substract.png");
		Icons::fill_icon = Texture2D::create(DataStore::rootPath / "Editor/icons/fill.png");
		Icons::fill_empty_icon = Texture2D::create(DataStore::rootPath / "Editor/icons/fill_empty.png");
		Icons::box_select_icon = Texture2D::create(DataStore::rootPath / "Editor/icons/box_select.png");
		Icons::face_voxel_selection_icon = Texture2D::create(DataStore::rootPath / "Editor/icons/face_voxel_selection.png");
		Icons::internal_voxel_selection_icon = Texture2D::create(DataStore::rootPath / "Editor/icons/internal_voxel_selection.png");
		Icons::info_icon = Texture2D::create(DataStore::rootPath / "Editor/icons/info.png");
	}
}
