Removed viewport_info of WindowEvent

This commit is contained in:
hyzboy 2025-01-24 23:14:17 +08:00
parent 1bcd213b63
commit d07baa9c71

View File

@ -2,7 +2,6 @@
#define HGL_IO_WINDOW_EVENT_INCLUDE
#include<hgl/io/event/InputEvent.h>
#include<hgl/graph/ViewportInfo.h>
namespace hgl
{
namespace io
@ -32,8 +31,6 @@ namespace hgl
{
WindowEventData *wed;
graph::ViewportInfo viewport_info;
public:
WindowEvent():InputEvent(InputEventSource::Window){}
@ -58,7 +55,7 @@ namespace hgl
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 OnClose (){}
};//class WindowEvent:public InputEvent