ref counting with std::shared_ptr seems to work and also is handed through with sol
This commit is contained in:
parent
dd23fa811a
commit
ae37273021
4 changed files with 41 additions and 24 deletions
|
@ -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)
|
||||
//{
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue