text: #include "vspch.h"
  #include "VertexArray.h"
  
  #include "Renderer.h"
  #include "Platform/OpenGL/OpenGLVertexArray.h"
  
  namespace Denocat
  {
  	Ref<VertexArray> VertexArray::Create()
  	{
  		switch (Renderer::GetAPI())
  		{
  		case RendererAPI::API::None:     VS_CORE_ASSERT(false, "RendererAPI::None is currently not supported!"); return nullptr;
  		case RendererAPI::API::OpenGL:  return std::make_shared<OpenGLVertexArray>();
  		}
  
  		VS_CORE_ASSERT(false, "Unknown RendererAPI!");
  		return nullptr;
  	}
  }