text: #include "Texture.h"
  
  #include "RendererAPI.h"
  
  #include "TinyEngine/Core/Assert.h"
  
  #include "Platform/OpenGL/OpenGLTexture.h"
  
  namespace TNG {
  
      Ref<Texture2D> Texture2D::Create(unsigned int width, unsigned int height)
      {
          switch(RendererAPI::GetAPI())
          {
              case RendererAPI::API::None:
              {
                  TNG_CORE_ASSERT(false, "RendererAPI::None is not supported yet!");
              }
              case RendererAPI::API::OpenGL:
              {
                  return CreateRef<OpenGLTexture2D>(width, height);
              }
              default:
              TNG_CORE_ASSERT(false, "Unknown Renderer::API");
                  return nullptr;
          }
      }
  
      Ref<Texture2D> Texture2D::Create(const std::string &path)
      {
          switch(RendererAPI::GetAPI())
          {
              case RendererAPI::API::None:
              {
                  TNG_CORE_ASSERT(false, "RendererAPI::None is not supported yet!");
              }
              case RendererAPI::API::OpenGL:
              {
                  return CreateRef<OpenGLTexture2D>(path);
              }
              default:
                  TNG_CORE_ASSERT(false, "Unknown Renderer::API");
                  return nullptr;
          }
      }
  
  }
  