From 7dadc274759851329ce308ec541f35c6a8919154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 2 May 2019 17:44:55 +0200 Subject: [PATCH] python: expose the GL::AbstractShaderProgram type. The type needs to be known for Mesh::draw() and shaders later. --- src/python/magnum/gl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/python/magnum/gl.cpp b/src/python/magnum/gl.cpp index cc15ffa..3b18cc7 100644 --- a/src/python/magnum/gl.cpp +++ b/src/python/magnum/gl.cpp @@ -25,6 +25,7 @@ #include #include +#include #include #include #include @@ -39,6 +40,11 @@ namespace magnum { namespace { void gl(py::module& m) { py::module::import("corrade.containers"); + /* Abstract shader program */ + NonDestructible{m, + "AbstractShaderProgram", "Base for shader program implementations"}; + /** @todo more */ + /* (Dynamic) attribute */ py::class_ attribute{m, "Attribute", "Vertex attribute location and type"};