aboutsummaryrefslogtreecommitdiff
path: root/src/mglpp.cpp
blob: 1719d8534099f13184db920200e1e8d943130db7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "../include/mglpp/mglpp.hpp"
extern "C" {
#include <mgl/mgl.h>
}

namespace mgl {
    Init::Init() {
        if(mgl_init() != 0)
            throw InitException();
    }

    Init::~Init() {
        mgl_deinit();
    }
}