Browse Source

python: minor cleanup.

pull/2/head
Vladimír Vondruš 7 years ago
parent
commit
6adc330e39
  1. 4
      src/python/magnum/meshtools.cpp
  2. 2
      src/python/magnum/primitives.cpp
  3. 2
      src/python/magnum/shaders.cpp

4
src/python/magnum/meshtools.cpp

@ -35,8 +35,8 @@
namespace magnum { namespace {
void meshtools(py::module& m) {
m.import("magnum.gl");
m.import("magnum.trade");
py::module::import("magnum.gl");
py::module::import("magnum.trade");
m
.def("compile", [](const Trade::MeshData2D& data) {

2
src/python/magnum/primitives.cpp

@ -34,7 +34,7 @@
namespace magnum { namespace {
void primitives(py::module& m) {
m.import("magnum.trade");
py::module::import("magnum.trade");
py::enum_<Primitives::SquareTextureCoords>{m, "SquareTextureCoords", "Whether to generate square texture coordinates"}
.value("DONT_GENERATE", Primitives::SquareTextureCoords::DontGenerate)

2
src/python/magnum/shaders.cpp

@ -61,7 +61,7 @@ template<UnsignedInt dimensions> void vertexColor(NonDestructibleBase<Shaders::V
}
void shaders(py::module& m) {
m.import("magnum.gl");
py::module::import("magnum.gl");
/* 2D/3D vertex color shader */
{

Loading…
Cancel
Save