Index

zydeco / 5a717fe

Experiment in graphics programming, C++, OpenGL, simulation techniques.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
703 Sep 2023 16:015f524c5OpenGL render abstractionsJosh Stockin111G

Blob @ zydeco / include / events / IEventHandler.hpp

text/plain758 bytesdownload raw
1#ifndef IEVENT_HANDLER_HPP_
2#define IEVENT_HANDLER_HPP_
3
4
5#include <cstdint>
6
7#include "IUpdateable.hpp"
8
9
10class IEventKeyboardSubscriber;
11class IEventMouseSubscriber;
12class IEventQuitSubscriber;
13class IEventWindowSubscriber;
14
15
16class IEventHandler : public IUpdateable
17{
18public:
19 virtual bool Update() = 0;
20
21 virtual bool RegisterKeyboardEventSubscriber(IEventKeyboardSubscriber *p_event_keyboard_subscriber) = 0;
22 virtual bool RegisterMouseEventSubscriber(IEventMouseSubscriber *p_event_mouse_subscriber) = 0;
23 virtual bool RegisterQuitEventSubscriber(IEventQuitSubscriber *p_event_quit_subscriber) = 0;
24 virtual bool RegisterWindowEventSubscriber(IEventWindowSubscriber *p_event_window_subscriber) = 0;
25};
26
27
28#endif /* IEVENT_HANDLER_HPP_ */
29