diff options
Diffstat (limited to 'opengl-bindings/src')
| -rw-r--r-- | opengl-bindings/src/shader.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/opengl-bindings/src/shader.rs b/opengl-bindings/src/shader.rs index d3ce530..2808f0f 100644 --- a/opengl-bindings/src/shader.rs +++ b/opengl-bindings/src/shader.rs @@ -215,6 +215,16 @@ impl Program var.set(current_context, self, location); } + pub fn from_raw(raw: u32) -> Self + { + Self { program: raw } + } + + pub fn into_raw(self) -> u32 + { + self.program + } + pub fn delete(self, current_context: &CurrentContextWithFns<'_>) { unsafe { |
