mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-08-28 23:02:36 +02:00
32 lines
624 B
C++
32 lines
624 B
C++
#ifndef slic3r_GLShadersManager_hpp_
|
|||
|
|
#define slic3r_GLShadersManager_hpp_
|
||
|
|
|
||
|
|
#if ENABLE_SHADERS_MANAGER
|
||
|
|
|
||
|
|
#include "GLShader.hpp"
|
||
|
|
|
||
|
|
#include <vector>
|
||
|
|
#include <string>
|
||
|
|
#include <memory>
|
||
|
|
|
||
|
|
namespace Slic3r {
|
||
|
|
|
||
|
|
class GLShadersManager
|
||
|
|
{
|
||
|
|
std::vector<std::unique_ptr<GLShaderProgram>> m_shaders;
|
||
|
|
|
||
|
|
public:
|
||
|
|
std::pair<bool, std::string> init();
|
||
|
|
// call this method before to release the OpenGL context
|
||
|
|
void shutdown();
|
||
|
|
|
||
|
|
// returns nullptr if not found
|
||
|
|
GLShaderProgram* get_shader(const std::string& shader_name);
|
||
|
|
};
|
||
|
|
|
||
|
|
} // namespace Slic3r
|
||
|
|
|
||
|
|
#endif // ENABLE_SHADERS_MANAGER
|
||
|
|
|
||
|
|
#endif // slic3r_GLShadersManager_hpp_
|