1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-31 11:15:52 +00:00

Shaders loaded from files

This commit is contained in:
Enrico Turri
2018-05-21 13:08:02 +02:00
parent 3fb96ff636
commit 7cff6ef6db
8 changed files with 504 additions and 273 deletions
+5 -1
View File
@@ -16,7 +16,11 @@ public:
{}
~GLShader();
bool load(const char *fragment_shader, const char *vertex_shader);
//############################################################################################################################################
bool load_from_text(const char *fragment_shader, const char *vertex_shader);
bool load_from_file(const char* fragment_shader_filename, const char* vertex_shader_filename);
// bool load(const char *fragment_shader, const char *vertex_shader);
//############################################################################################################################################
void release();
int get_attrib_location(const char *name) const;