import Foundation


public struct Texture2D: Resource
{
	public let id: RenderTexture2D
	public let width: Int, height: Int
}

extension Texture2D
{
	public static let empty = Self(id: .empty, width: 0, height: 0)
}


public struct Texture2DParameters: ContentLoaderParametersProtocol
{
	public typealias T = Texture2D

	var minFilter: FilterMode, magFilter: FilterMode
	var wrapMode: WrapMode
	var mipMode: MipMode

	public init(minFilter: FilterMode = .linear, magFilter: FilterMode = .linear, wrapMode: WrapMode = .repeating, mipMode: MipMode = .off)
	{
		self.minFilter = minFilter
		self.magFilter = magFilter
		self.wrapMode = wrapMode
		self.mipMode = mipMode
	}
}
