aboutsummaryrefslogtreecommitdiff
path: root/src/Rendering/Framebuffer.cpp
blob: 1e95c6dd494dcd22a90842a6bb693e34b5a34143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "Framebuffer.h"
#include "Renderer.h"

#include "Platform/OpenGL/OpenGLFramebuffer.h"

namespace Donut
{
    Ref<Framebuffer> Framebuffer::Create(const FramebufferSpecification& spec)
    {
        switch (Renderer::GetAPI())
        {
            case RendererAPI::API::OpenGL:  return CreateRef<OpenGLFramebuffer>(spec);
        }

        return nullptr;
    }
};