Core: Add MovablePtr class

This commit is contained in:
Lynix
2017-09-30 13:57:25 +02:00
parent f95fc332f1
commit 2cd9fa2b7a
29 changed files with 157 additions and 259 deletions

View File

@@ -50,7 +50,7 @@ namespace Nz
}
}
bool ContextImpl::Activate()
bool ContextImpl::Activate() const
{
return glXMakeCurrent(m_display, m_window, m_context) == true;
}

View File

@@ -19,7 +19,7 @@ namespace Nz
ContextImpl();
~ContextImpl();
bool Activate();
bool Activate() const;
bool Create(ContextParameters& parameters);

View File

@@ -20,7 +20,7 @@ namespace Nz
{
}
bool ContextImpl::Activate()
bool ContextImpl::Activate() const
{
return wglMakeCurrent(m_deviceContext, m_context) == TRUE;
}

View File

@@ -18,7 +18,7 @@ namespace Nz
public:
ContextImpl();
bool Activate();
bool Activate() const;
bool Create(ContextParameters& parameters);