2026-05-02 21:24:21 -04:00
|
|
|
//
|
|
|
|
|
// Created by slinky on 5/1/26.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#ifndef B_ENGINE_SHADERLOADER_H
|
|
|
|
|
#define B_ENGINE_SHADERLOADER_H
|
|
|
|
|
|
2026-05-03 00:08:13 -05:00
|
|
|
#include <string>
|
|
|
|
|
#include <string_view>
|
2026-05-02 21:24:21 -04:00
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
|
|
#include "ShaderProgram.h"
|
|
|
|
|
|
|
|
|
|
class ShaderLoader {
|
|
|
|
|
public:
|
|
|
|
|
static std::unordered_map<std::string, std::shared_ptr<ShaderProgram>> shaders;
|
|
|
|
|
|
|
|
|
|
static std::shared_ptr<ShaderProgram> load(std::string_view vertexPath, std::string_view fragmentPath);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif //B_ENGINE_SHADERLOADER_H
|