ref counting with std::shared_ptr seems to work and also is handed through with sol

This commit is contained in:
Hartmut Seichter 2018-12-28 00:34:39 +01:00
parent dd23fa811a
commit ae37273021
4 changed files with 41 additions and 24 deletions

View file

@ -50,6 +50,13 @@ void pw::window::set_size(int w,int h) {
glfwSetWindowSize(_window,w,h);
}
std::pair<int,int> pw::window::get_size()
{
int x,y;
glfwGetWindowSize(_window,&x,&y);
return std::make_pair(x,y);
}
//void pw::window::load(sol::table &ns)
//{
//