Browse Source

python: expose the GL::AbstractShaderProgram type.

The type needs to be known for Mesh::draw() and shaders later.
pull/1/head
Vladimír Vondruš 7 years ago
parent
commit
7dadc27475
  1. 6
      src/python/magnum/gl.cpp

6
src/python/magnum/gl.cpp

@ -25,6 +25,7 @@
#include <pybind11/pybind11.h>
#include <Corrade/Containers/ArrayView.h>
#include <Magnum/GL/AbstractShaderProgram.h>
#include <Magnum/GL/Attribute.h>
#include <Magnum/GL/Buffer.h>
#include <Magnum/GL/DefaultFramebuffer.h>
@ -39,6 +40,11 @@ namespace magnum { namespace {
void gl(py::module& m) {
py::module::import("corrade.containers");
/* Abstract shader program */
NonDestructible<GL::AbstractShaderProgram>{m,
"AbstractShaderProgram", "Base for shader program implementations"};
/** @todo more */
/* (Dynamic) attribute */
py::class_<GL::DynamicAttribute> attribute{m, "Attribute", "Vertex attribute location and type"};

Loading…
Cancel
Save