mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 04:37:52 -06:00
Add the full source of BambuStudio
using version 1.0.10
This commit is contained in:
parent
30bcadab3e
commit
1555904bef
3771 changed files with 1251328 additions and 0 deletions
30
src/slic3r/GUI/GLShadersManager.hpp
Normal file
30
src/slic3r/GUI/GLShadersManager.hpp
Normal file
|
@ -0,0 +1,30 @@
|
|||
#ifndef slic3r_GLShadersManager_hpp_
|
||||
#define slic3r_GLShadersManager_hpp_
|
||||
|
||||
#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);
|
||||
|
||||
// returns currently active shader, nullptr if none
|
||||
GLShaderProgram* get_current_shader();
|
||||
};
|
||||
|
||||
} // namespace Slic3r
|
||||
|
||||
#endif // slic3r_GLShadersManager_hpp_
|
Loading…
Add table
Add a link
Reference in a new issue