Core: Add MovablePtr class
This commit is contained in:
@@ -50,7 +50,7 @@ namespace Nz
|
||||
}
|
||||
}
|
||||
|
||||
bool ContextImpl::Activate()
|
||||
bool ContextImpl::Activate() const
|
||||
{
|
||||
return glXMakeCurrent(m_display, m_window, m_context) == true;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace Nz
|
||||
ContextImpl();
|
||||
~ContextImpl();
|
||||
|
||||
bool Activate();
|
||||
bool Activate() const;
|
||||
|
||||
bool Create(ContextParameters& parameters);
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace Nz
|
||||
{
|
||||
}
|
||||
|
||||
bool ContextImpl::Activate()
|
||||
bool ContextImpl::Activate() const
|
||||
{
|
||||
return wglMakeCurrent(m_deviceContext, m_context) == TRUE;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Nz
|
||||
public:
|
||||
ContextImpl();
|
||||
|
||||
bool Activate();
|
||||
bool Activate() const;
|
||||
|
||||
bool Create(ContextParameters& parameters);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user