hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/rendering/render_api.h
blob: 94ab755cd07a6b2a1a98215a6387334eb13ef5f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

namespace Donut
{
    class RendererAPI
    {
    public:
        enum class API
        {
            None   = 0,
            OpenGL = 1,
            Vulkan = 2,
        };

        static auto get_api() -> API         { return s_api; }
        static auto set_api(API api) -> void { s_api = api;  }

    private:
        inline static API s_api = API::None;
    };
}