From 0546d575c11d3668d0f95933697ae4f670fe2a55 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 20 Mar 2026 14:06:53 +0100 Subject: feat(opengl-bindings): add shader::Program from_raw & into_raw fns --- opengl-bindings/src/shader.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 { -- cgit v1.2.3-18-g5258