Removed viewport_info of WindowEvent
This commit is contained in:
parent
1bcd213b63
commit
d07baa9c71
@ -2,7 +2,6 @@
|
|||||||
#define HGL_IO_WINDOW_EVENT_INCLUDE
|
#define HGL_IO_WINDOW_EVENT_INCLUDE
|
||||||
|
|
||||||
#include<hgl/io/event/InputEvent.h>
|
#include<hgl/io/event/InputEvent.h>
|
||||||
#include<hgl/graph/ViewportInfo.h>
|
|
||||||
namespace hgl
|
namespace hgl
|
||||||
{
|
{
|
||||||
namespace io
|
namespace io
|
||||||
@ -32,8 +31,6 @@ namespace hgl
|
|||||||
{
|
{
|
||||||
WindowEventData *wed;
|
WindowEventData *wed;
|
||||||
|
|
||||||
graph::ViewportInfo viewport_info;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
WindowEvent():InputEvent(InputEventSource::Window){}
|
WindowEvent():InputEvent(InputEventSource::Window){}
|
||||||
@ -58,7 +55,7 @@ namespace hgl
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
virtual void OnResize(uint w,uint h){viewport_info.Set(w,h);}
|
virtual void OnResize(uint w,uint h){}
|
||||||
virtual void OnActive(bool){}
|
virtual void OnActive(bool){}
|
||||||
virtual void OnClose (){}
|
virtual void OnClose (){}
|
||||||
};//class WindowEvent:public InputEvent
|
};//class WindowEvent:public InputEvent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user