Platform/PlatformWindow: pass owner in constructor instead of setting the variable directly on the object. it is cleaner.
This commit is contained in:
parent
5a7a5e3f7c
commit
1288ef88b8
6 changed files with 14 additions and 10 deletions
|
|
@ -18,7 +18,8 @@ namespace sp {
|
|||
|
||||
static bool firstTime = true;
|
||||
|
||||
Win32Window::Win32Window() :
|
||||
Win32Window::Win32Window(Window* owner) :
|
||||
PlatformWindow (owner),
|
||||
m_handle (NULL),
|
||||
m_icon (0),
|
||||
m_cursor (0),
|
||||
|
|
|
|||
|
|
@ -9,10 +9,12 @@
|
|||
|
||||
namespace sp {
|
||||
|
||||
class Window;
|
||||
|
||||
class Win32Window : public PlatformWindow
|
||||
{
|
||||
public :
|
||||
Win32Window();
|
||||
Win32Window(Window* owner);
|
||||
virtual ~Win32Window();
|
||||
|
||||
virtual bool create(WindowDescription description);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue