/*
 *    This file is part of the Distant Horizons mod
 *    licensed under the GNU LGPL v3 License.
 *
 *    Copyright (C) 2020 James Seibel
 *
 *    This program is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU Lesser General Public License as published by
 *    the Free Software Foundation, version 3.
 *
 *    This program is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU Lesser General Public License for more details.
 *
 *    You should have received a copy of the GNU Lesser General Public License
 *    along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

package com.seibel.distanthorizons.api.enums.rendering;

/**
 * OFF,								<br>
 * SHOW_DETAIL,						<br>
 * SHOW_GENMODE,					<br>
 * SHOW_OVERLAPPING_QUADS,			<br>
 * SHOW_RENDER_SOURCE_FLAG,			<br>
 *
 * @author Leetom
 * @author James Seibel
 * @version 2024-4-6
 * @since API 2.0.0
 */
public enum EDhApiDebugRendering
{
	/** LODs are rendered normally */
	OFF,
	
	/** LOD colors are based on their detail */
	SHOW_DETAIL,
	
	/** Block Materials are often used by Iris shaders to determine how LODs should be rendered */
	SHOW_BLOCK_MATERIAL,
	
	/** Only draw overlapping LOD quads. */
	SHOW_OVERLAPPING_QUADS;
	
	public static EDhApiDebugRendering next(EDhApiDebugRendering type)
	{
		switch (type)
		{
			case OFF:
				return SHOW_DETAIL;
			case SHOW_DETAIL:
				return SHOW_BLOCK_MATERIAL;
			case SHOW_BLOCK_MATERIAL:
				return SHOW_OVERLAPPING_QUADS;
			case SHOW_OVERLAPPING_QUADS:
				return OFF;
			default:
				return OFF;
		}
	}
	
	public static EDhApiDebugRendering previous(EDhApiDebugRendering type)
	{
		switch (type)
		{
			case OFF:
				return SHOW_OVERLAPPING_QUADS;
			case SHOW_OVERLAPPING_QUADS:
				return SHOW_DETAIL;
			default:
				return OFF;
		}
	}
	
}
