text: #include "hzpch.h"
  #include "Texture.h"
  
  #include "Hazel/Renderer/Renderer.h"
  #include "Platform/OpenGL/OpenGLTexture.h"
  namespace Hazel
  {
  	Ref<Texture2D> Texture2D::Create(uint32_t width, uint32_t height)
  	{
  		switch (Renderer::GetAPI())
  		{
  		case RendererAPI::API::None: HZ_CORE_ASSERT(false, "RendererAPI::None is currently not supported!"); return false;
  		case RendererAPI::API::OpenGL: return CreateRef<OpenGLTexture2D>(width, height);
  		}
  		HZ_CORE_ASSERT(false, "Unknown RendererAPI");
  		return false;
  	}
  
  	Ref<Texture2D> Texture2D::Create(const std::string& path)
  	{
  		switch (Renderer::GetAPI())
  		{
  		case RendererAPI::API::None: HZ_CORE_ASSERT(false, "RendererAPI::None is currently not supported!"); return false;
  		case RendererAPI::API::OpenGL: return CreateRef<OpenGLTexture2D>(path);
  		}
  		HZ_CORE_ASSERT(false, "Unknown RendererAPI");
  		return false;
  	}
  }