summaryrefslogtreecommitdiff
path: root/themes/src/shader_fetcher.hpp
blob: aef25b4d2d6edb0600ef377c8d076a8321aa7fe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef SHADER_FETCHER_HPP
#define SHADER_FETCHER_HPP

#include <string>

struct ShaderFetchPaths {
    const char* vertex;
    const char* fragment;
};

struct ShaderFetchResult {
    std::string vertex;
    std::string fragment;
    void* user_data;
};

void fetch_shader(ShaderFetchPaths, void (*cb)(ShaderFetchResult*), void* user_data = nullptr);

#endif