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