]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/shader.h
Redesign the way shader programs are loaded
[libs/gl.git] / source / core / shader.h
index bab11a7e9603e8bcc32652427b20ade4e7796267..e02aa84a8c597095a989a9e0999f4c317865b341 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef MSP_GL_SHADER_H_
 #define MSP_GL_SHADER_H_
 
+#include <msp/core/attributes.h>
 #include <string>
 #include "gl.h"
 
@@ -32,9 +33,10 @@ public:
        void source(const char *str, int len);
        void compile();
        unsigned get_id() const { return id; }
+       unsigned steal_id();
        bool is_compiled() const { return compiled; }
        std::string get_info_log() const;
-};
+} DEPRECATED;
 
 
 class VertexShader: public Shader